SA-MP Forums Archive
Jetpack - 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: Jetpack (/showthread.php?tid=77175)



Jetpack - FreeSoul - 09.05.2009

How can I make a command like /jetpack,that will give the player a jetpack?


Re: Jetpack - Dark_Kostas - 09.05.2009

Im not sure if this will work.

pawn Code:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);



Re: Jetpack - Think - 09.05.2009

Quote:
Originally Posted by FreeSoul
How can I make a command like /jetpack,that will give the player a jetpack?
get the player pos, than spawn a jetpack (as pickup else it wont work) than fly around.

pawn Code:
if(strcmp(cmdtext,"/jetpack",true) == 0)
    {
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        CreatePickup(370,2,X,Y,Z);
        SendClientMessage(playerid, COLOR_GREY, "* Spawned jetpack");
        return 1;
    }