Comando de dar grana
#8

PHP Code:
COMMAND:dargrana(playeridparams[])
{
    if (
IsPlayerAdmin(playerid))
    {
        new
          
toplayerid,
          
amount;
        if (!
sscanf(params"ii"toplayeridamount))
        {
          if (
toplayerid != INVALID_PLAYER_ID)
          {
            new
              
message[40];
            
GivePlayerMoney(toplayeridamount);
            
format(messagesizeof(message), "vocк arecebeu $%d do administrador!"amount);
            
SendClientMessage(toplayerid0x00FF00FFmessage);
          }
          else 
SendClientMessage(playerid0xFF0000FF"o jogador nгo estб logado");
        }
        else 
SendClientMessage(playerid0xFFFFFFFF"Utilizaзгp: /dargrana <iddojogador> <quantia>");
    }
    else 
SendClientMessage(playerid0xFF0000FF"Sу administradores podem utilizar este comando!");
    return 
1;

Reply


Messages In This Thread
Comando de dar grana - by Felipe_Wesker - 06.08.2011, 16:18
Re: Comando de dar grana - by Dark.Angel - 06.08.2011, 16:32
Re: Comando de dar grana - by 1The1AleX1 - 06.08.2011, 16:35
Re: Comando de dar grana - by array13 - 06.08.2011, 16:40
Re: Comando de dar grana - by Felipe_Wesker - 06.08.2011, 18:04
Re: Comando de dar grana - by crush_ - 06.08.2011, 18:24
Re: Comando de dar grana - by Vai_Besta - 07.08.2011, 14:16
Re: Comando de dar grana - by array13 - 08.08.2011, 12:54
Re: Comando de dar grana - by Sr.Pekeno - 08.08.2011, 13:01

Forum Jump:


Users browsing this thread: 4 Guest(s)