Jetpack Command
#4

Here try this :
PHP код:
if(strcmp(cmdtext,"/jetpack",true) == 0)
    {
        if(
IsPlayerAdmin(playerid)) //You need to be logged with rcon to use this command you can edit it 
        
{
        new 
Float:X,Float:Y,Float:Z;
        
GetPlayerPos(playerid,X,Y,Z);
        
SetPlayerPos(playeridXYZ);
        
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        
SendClientMessage(playerid0x15FF00AA"* You Have Succefully Spawned Jetpack");
        }
        else
        {
              
SendClientMessage(playerid0xFF0000FF"[ERROR]: You need to be RCON admin to use this command");
        }
        return 
1;
    } 
I didn't test it but i hope it work
Tell me if it worked
Reply


Messages In This Thread
Jetpack Command - by ghzspark - 21.02.2013, 18:52
Re: Jetpack Command - by ZeroCools - 21.02.2013, 19:06
Re: Jetpack Command - by Luis- - 21.02.2013, 19:08
Re: Jetpack Command - by Mark_Samp - 21.02.2013, 19:12
Re: Jetpack Command - by Goldino - 21.02.2013, 19:18
Re: Jetpack Command - by ghzspark - 21.02.2013, 19:19
Re: Jetpack Command - by Goldino - 21.02.2013, 19:21
Re: Jetpack Command - by ghzspark - 21.02.2013, 19:22
Re: Jetpack Command - by benel1 - 21.02.2013, 19:42
Re: Jetpack Command - by ghzspark - 22.02.2013, 06:55

Forum Jump:


Users browsing this thread: 7 Guest(s)