[Ajuda] unfreeze
#3

Tente dessa forma.

pawn Код:
CMD:unfreeze(playerid, params[])
{
    if(!PlayerInfo[playerid][Adminlevel] > 1) return SendClientMessage(playerid, 0x0259EAAA, "Nao йs Administrador");
    {
        new id;
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0x0259EAAA, "Comando: /freeze [playerID]");
        {
             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;
        }
    }
    return true;
}
Reply


Messages In This Thread
[Ajuda] unfreeze - by noobre - 05.09.2011, 19:54
Re: [Ajuda] unfreeze - by Bruno Pereira - 05.09.2011, 20:00
Re: [Ajuda] unfreeze - by Hardware - 05.09.2011, 20:01
Re: [Ajuda] unfreeze - by RebeloX - 05.09.2011, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)