Comando de dar grana
#2

PHP Code:
    if (strcmp(cmd,"/dargrana",true) == 0)
    {
        new 
playerid2; new grana; new String[128];
        
tmp strtok(cmdtext,idx);
        
playerid2 strval(tmp);
        if (!
strlen(tmp)) return SendClientMessage(playerid,-1,"Digite: /dargrana [ID do Jogador] [Quantia de Grana]");
        if (!
IsPlayerConnected(playerid2)) return SendClientMessage(playerid,-1,"Este jogador esta off");
        
tmp strtok(cmdtext,idx);
        
grana strval(tmp);
        if (!
strlen(tmp)) return SendClientMessage(playerid,-1,"Digite: /dargrana [ID do Jogador] [Quantia de Grana]");
        
GivePlayerMoney(playerid2,grana);
        
format(String,128,"Vocк deu $%i para o ID %i",grana,playerid2);
        
SendClientMessage(playerid,-1,String);
        return 
true;
    } 
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: 1 Guest(s)