21.02.2013, 19:12
Here try this :
I didn't test it but i hope it work
Tell me if it worked
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(playerid, X, Y, Z);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
SendClientMessage(playerid, 0x15FF00AA, "* You Have Succefully Spawned Jetpack");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "[ERROR]: You need to be RCON admin to use this command");
}
return 1;
}
Tell me if it worked