13.09.2010, 20:32
How can I make command to give Jatpack ?
I think I know how to start but i don't know how to finish cmd...![Sad](images/smilies/sad.gif)
I have this cmd for Admins, but with this cmd only admin can spawn Jatpack to him
And I wanna make That only player who's admin lvl4 can give jatpack to player... But im confuzed when I try to make that script... :S
I think I know how to start but i don't know how to finish cmd...
![Sad](images/smilies/sad.gif)
I have this cmd for Admins, but with this cmd only admin can spawn Jatpack to him
pawn Код:
if(strcmp(cmd,"/jetpack",true)==0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Enjoy the jetpack!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
return 1;
}
}
}