SA-MP Forums Archive
how can i spawn 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: how can i spawn jetpack (/showthread.php?tid=273075)



how can i spawn jetpack - davidnking - 31.07.2011

hey guys
i need jetpack spawner only for admins
can u make for me pwn file that i need to put it in filterscript
or pastebin


Re: how can i spawn jetpack - [HiC]TheKiller - 31.07.2011

pawn Code:
SetPlayerSpecialAction(playerid,2);
That's for setting the player to the Jetpack animation.


Re: how can i spawn jetpack - davidnking - 31.07.2011

i dont need jetpack animation I need a jetpack spawner using this command /jetpack or somthing like this
and if you can tell me how to put it and where


Re: how can i spawn jetpack - [HiC]TheKiller - 31.07.2011

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerAdmin(playerid))
    {
        if(!strcmp(cmdtext, "/jetpack", true))
        {
             SendClientMessage(playerid, -1, "Spawned a Jetpack!");
             SetPlayerSpecialAction(playerid,2);
             return 1;
        }
    }
    return 0;
}
Try that.


Re: how can i spawn jetpack - davidnking - 31.07.2011

thanks its working