15.03.2010, 05:30
Quote:
Originally Posted by Steven82
Would it be possible to not make the commands with a team but make with a skin id?
|
if(GetPlayerSkin(playerid) == 293)//293 is a skin
an e.g
Код:
if(!strcmp(cmd,"/cuff",true)) { if(GetPlayerSkin(playerid) == 293) || IsACop(playerid)) { tmp=strtok(cmdtext,idx); if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /cuff playerid"); giveplayerid = ReturnUser(tmp); if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_GREY,"Invalid player id."); TogglePlayerControllable(giveplayerid,0); GameTextForPlayer(giveplayerid, "~y~ You have been Cuffed!",2500,3); } return true; }