26.06.2009, 17:44
If I do like this:
or this:
the player can use this command still. I just need disable the commands if player is cuffed.. So can anyone help me?
Код:
if(strcmp(cmdtext, "/pickup", true)==0) { if(playerDB[playerid][cuffed]) return SendClientMessage(playerid,COLOR, "You cannot use this command while cuffed!"); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); return 1; }
Код:
if(playerDB[playerid][cuffed]) return 1;