How to make givemoney command
#8

Lol, just convert it!

PHP код:
if(!strcmp(cmdtext"/givecash"true9)) 
    new 
idmoneystring[128], string2[128];
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000AA"ERROR:You're not an admin.");
    {
        if(
sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givemoney [ID] [amount]");
        else
            
GivePlayerMoney(id,money);
        
format(stringsizeof(string),"You have give player %s %d$!"GetName(id), money);
        
SendClientMessage(playeridCOLOR_GREYstring);
        
format(string2 ,sizeof(string2),"Administrator %s has given you %d$!"GetName(id), money);
        
SendClientMessage(idCOLOR_GREYstring2);
    }
    return 
1;

Gimme a rep if its right!
Reply


Messages In This Thread
How to make givemoney command - by lyrics - 14.08.2011, 11:19
Re: How to make givemoney command - by Grim_ - 14.08.2011, 11:20
Re: How to make givemoney command - by lyrics - 14.08.2011, 11:24
Re: How to make givemoney command - by Grim_ - 14.08.2011, 11:26
Re: How to make givemoney command - by Darnell - 14.08.2011, 11:32
Re: How to make givemoney command - by lyrics - 14.08.2011, 11:34
Re: How to make givemoney command - by Darnell - 14.08.2011, 11:37
AW: How to make givemoney command - by samtey - 14.08.2011, 11:41
Re: AW: How to make givemoney command - by Darnell - 14.08.2011, 11:47
AW: How to make givemoney command - by samtey - 14.08.2011, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)