Jump to content

[REZOLVAT] Problema comanda Bullhorn


MasterGuN
 Share

Recommended Posts

Am incercat sa fac comanda /bullhorn pentru vehiculele personale , dar imi da erroare 

Image: https://imgur.com/a/mktZ37L

 

YCMD:bullhorn(playerid, params[], help) {
    if(PlayerInfo[playerid][pVip] == 1) return 1;
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");
    new object1 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    new object2 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(object1, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(object2, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    SCM(playerid, COLOR_YELLOW, "Comanda executata cu succes.");
    return 1;
}

Link to comment
Share on other sites

 

Am incercat sa fac comanda /bullhorn pentru vehiculele personale , dar imi da erroare 

Image: https://imgur.com/a/mktZ37L

 

YCMD:bullhorn(playerid, params[], help) {

    if(PlayerInfo[playerid][pVip] == 1) return 1;

    if(!IsPlayerInAnyVehicle(playerid)) return 1;

    if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");

    new object1 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);

    new object2 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);

    AttachObjectToVehicle(object1, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);

    AttachObjectToVehicle(object2, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);

    SCM(playerid, COLOR_YELLOW, "Comanda executata cu succes.");

    return 1;

}

 

nu ai definit idd, ori pune id in loc de idd ori definesti idd.

RSSYzWc.png

giphy.gif

 

SINGURUL SERVER PE CARE JOC: RPG.H2P.RO!

 

Link to comment
Share on other sites

Pune " new idd = GetPlayerVehicleID(playerid); " deasupra obiectelor definite.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

#define noob_level[MAX_PLAYERS];

function IHaveTheNoob(playerid){
	new randomlevelnoob = 0 + random(2);
	noob_level[playerid] = randomlevelnoob;
	switch(noob_level[playerid]){
		case 0: SendClientMessage(playerid, -1, "You f**king noob men, this is Babur's opinion");
		case 1: SendClientMessage(playerid, -1, "Brother, you are noob, nothing has changed");
		default: SendClientMessage(playerid, -1, "HA HA HA, YOU NOOB IN PAWN! HA HA HA!");
	}	
	Kick(playerid);
	return 1;
}
OnPlayerConnect return IHaveTheNoob(playerid);

 

cooltext370126435149439.png

Link to comment
Share on other sites

Am rezolvat problema cu erroarea , dar cand dau /bullhorn nu apar coarnele pe nici-o masina

Nu apar coarnele deoarece coordonatele pe care le vezi in Map Editor nu sunt la fel cu cele Offset.

 

Poate te lamureste acest topic: http://forum.sa-mp.com/showthread.php?t=270427

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...