[Ajuda] unfreeze
#4

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;
}
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: 2 Guest(s)