[Ajuda] unfreeze
#1

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");
}
Bem, este comando estб esquisito, pois eu executo o comando e apenas aparece-me:
IN GAME:

O Administrador %s descongelou-te
Descongelaste o jogador %s

Nao aparece a mensagem para introduzir qual o ID que desejo.
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)