16.07.2010, 22:38
pawn Code:
if(strcmp("/uncuff", cmd, true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"USAGE: /uncuff [playerid]");
if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid,0xFF0000FF,"Player is not connected");
TogglePlayerControllable(strval(tmp),1);
GameTextForPlayer(strval(tmp), "~y~ hands uncuffed!",2500,3);
return 1;
}