[Ajuda] unfreeze
#2

PHP код:
CMD:unfreeze(playeridparams[])
{
    if(
PlayerInfo[playerid][Adminlevel] > 1)
    {
        new 
id;
        if(
sscanf(params"u"id))
        {
             new 
string[64];
             
format(stringsizeof(string), "O Administrador %s descongelou-te"pNome(playerid));
             
SendClientMessage(id0x0259EAAAstring);
             
format(stringsizeof(string), "Descongelaste o jogador %s"pNome(id));
             
SendClientMessage(playerid0x0259EAAAstring);
             
TogglePlayerControllable(id1);
             return 
1;
        }
        else return 
SendClientMessage(playerid0x0259EAAA"Comando: /freeze [playerID]");
    }
    else return 
SendClientMessage(playerid0x0259EAAA"Nao йs Administrador");

E coloque isso no final do GM:
PHP код:
stock pNome(playerid)
{
//Essa funзгo irб returnar o nome do jogador, sendo assim nгo precisa toda vez usar new nome[MAX_PLAYER_NAME]; GetPlayerName e bla bla bla.
    
new nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomesizeof(nome));
    return 
nome;

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)