05.09.2011, 20:15
Sei que jб responderam, mas sу te vou amostrar um truque de optimizaзгo.
pawn Код:
CMD:unfreeze(playerid, params[])
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
new id;
if(PlayerInfo[playerid][Adminlevel] > 1) return SendClientMessage(playerid, 0x0259EAAA, "Nao йs Administrador");
if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0x0259EAAA, "Comando: /freeze [playerID]");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "O Administrador %s descongelou-te", name);
SendClientMessage(id, 0x0259EAAA, string);
format(string, sizeof(string), "Descongelaste o jogador %s", PlayerName);
SendClientMessage(playerid, 0x0259EAAA, string);
TogglePlayerControllable(id, 1);
return true;
}