17.03.2013, 06:48
Code:
if(strcmp(cmdtext,"/jetpack",true) == 0) { if(PlayerInfo[playerid][pAdmin] == 3 || PlayerInfo[playerid][pAdmin] == 4 || PlayerInfo[playerid][pAdmin] == 5 || PlayerInfo[playerid][pAdmin] == 6 || PlayerInfo[playerid][pAdmin] == 1337 || PlayerInfo[playerid][pAdmin] == 1338 ) { new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); SetPlayerPos(playerid, X, Y, Z); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); SendClientMessage(playerid, COLOR_GREY, "* You Have Spawned A Jetpack"); } else { SendClientMessage(playerid, 0xAA0000AA, "You Are Not Authorized To Use This Command!"); } return 1; }