CMD:unfreeze(playerid, params[]){if (PlayerInfo[playerid][pAdmin] >= 2){new string[128], giveplayerid;if(sscanf(params, \"u\", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, \"USAGE: /unfreeze [playerid]\"); if(IsPlayerConnected(giveplayerid)){ DeletePVar(giveplayerid, \"IsFrozen\"); TogglePlayerControllable(giveplayerid, 1); format(string, sizeof(string), \"AdmCmd: %s was unfrozen by %s.\",GetPlayerNameEx(giveplayerid),GetPlayerNameEx(playerid)); ABroadCast(COLOR_LIGHTRED,string,2);}else{ SendClientMessageEx(playerid, COLOR_WHITE, \"Invalid player specified.\");}}else{SendClientMessageEx(playerid, COLOR_GRAD1, \"You are not authorized to use that command!\");}return 1;}
// Forráskód