06-10-2008, 10:55 AM
Code:
if(strcmp(cmd, "/Freeze", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new tmp[30];
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
if(IsPlayerConnected(otherplayer))
{
SendClientMessage(otherplayer, 0xFFFF00AA, "You have been Frozen!, Go read the (./)Rules");
TogglePlayerControllable(otherplayer,0);
}
}
return 1;
}