SA-MP Forums Archive
Jet Pack broblem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Jet Pack broblem (/showthread.php?tid=202105)



Jet Pack broblem - Kardanas - 23.12.2010

I copied this from one Gamemode.

Quote:

if(strcmp(cmdtext, "/fly", true)==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid,COLOR,"* Got Jet-Pack");
return 1;
}

Its ok then i pressing f5, but then in server i type "/fly" I dont got jet pack, whats a problem?


Re: Jet Pack broblem - Souvlaki - 23.12.2010

SPECIAL_ACTION_USEJETPACK

You have a space between use and jetpack


Re: Jet Pack broblem - Kardanas - 23.12.2010

Still i cant get it in game.


Re: Jet Pack broblem - Infamous - 23.12.2010

Are you getting any errors? Without the space that should work fine.


Re: Jet Pack broblem - Kardanas - 23.12.2010

I dont get any error, then i go to server and type /fly i dont get Jet Pack..wtf.


Re: Jet Pack broblem - <Weponz> - 23.12.2010

Dude just use:

pawn Код:
CMD:jetpack(playerid, params[])
{
new Float:Y,Float:Z,Float:X;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(370,4,X,Y,Z);
GameTextForPlayer(playerid,"\n\n\n~w~Your ~g~Jetpack!",3000,5);
return true;
}



Re: Jet Pack broblem - [MWR]Blood - 23.12.2010

pawn Код:
SetPlayerSpecialAction(playerid,2);



Re: Jet Pack broblem - Infamous - 24.12.2010

Just use the code by Delux13, the '2' is the same as typing SPECIAL_ACTION_USEJETPACK.