05.09.2011, 19:54
pawn Код:
CMD:unfreeze(playerid, params[])
{
if(PlayerInfo[playerid][Adminlevel] > 1)
{
new id;
if(sscanf(params, "u", id))
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
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 1;
}
else return SendClientMessage(playerid, 0x0259EAAA, "Comando: /freeze [playerID]");
}
else return SendClientMessage(playerid, 0x0259EAAA, "Nao йs Administrador");
}
IN GAME:
O Administrador %s descongelou-te
Descongelaste o jogador %s
Nao aparece a mensagem para introduzir qual o ID que desejo.