GivePlayerMoney
#9

Try this.
PHP код:
CMD:givemoney(playeridparams[])
{
    new 
targetplayeramount;
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"SERVER: Unknown command.");
    if(
sscanf(params"dd"targetplayeramount)) return SendClientMessage(playeridCOLOR_ORANGE"USAGE: /givemoney [ID] [AMOUNT]");
    if(!
IsPlayerConnected(targetplayer)) return SendClientMessage(playeridCOLOR_RED"ERROR: Player is not connected!");
       new 
string[100];
       
GivePlayerMoney(targetplayeramount);
       
format(stringsizeof(string), "An admin gave you $%d"amount);
       
SendClientMessage(playeridCOLOR_GREENstring);
    return 
1;

Reply


Messages In This Thread
GivePlayerMoney - by saffierr - 02.04.2015, 21:44
Re: GivePlayerMoney - by DaniceMcHarley - 02.04.2015, 21:47
Re: GivePlayerMoney - by saffierr - 02.04.2015, 21:49
Re: GivePlayerMoney - by BleverCastard - 02.04.2015, 22:04
Re: GivePlayerMoney - by saffierr - 02.04.2015, 22:06
Re: GivePlayerMoney - by saffierr - 02.04.2015, 23:00
Re: GivePlayerMoney - by Crayder - 02.04.2015, 23:07
Re: GivePlayerMoney - by saffierr - 02.04.2015, 23:36
Re: GivePlayerMoney - by willsuckformoney - 03.04.2015, 01:30
Re: GivePlayerMoney - by [ABK]Antonio - 03.04.2015, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)