givecash command not working
#4

WTF is that KJ1...

Код:
dcmd_givecash(playerid,params[])
{
     new ID,Ammount;
     if(sscanf(params,"dd",ID,Ammount)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /Givecash < Player ID > < Ammount >");
     if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,COLOR_RED,"Invalid User!");
     GivePlayerMoney(ID,Ammount);
     GivePlayerMoney(playerid,-Ammount);
     new Msg[128];
     format(Msg,sizeof(Msg),"%s has sent you %d",ReturnPlayerName(ID),Ammount);
     SendClientMessage(ID,COLOR_GREEN,Msg);
     format(Msg,sizeof(Msg),"$%d sent to %s",Ammount,ReturnPlayerName(ID));
     SendClientMessage(playerid,COLOR_GREEN,Msg);
     return 1;
}
Reply


Messages In This Thread
givecash command not working - by _Vortex - 08.07.2010, 00:19
Re: givecash command not working - by KJ1 - 08.07.2010, 01:04
Re: givecash command not working - by PotH3Ad - 08.07.2010, 01:17
Re: givecash command not working - by [L3th4l] - 08.07.2010, 01:23
Re: givecash command not working - by selten98 - 08.07.2010, 08:14
Re: givecash command not working - by GaGlets(R) - 08.07.2010, 13:19

Forum Jump:


Users browsing this thread: 2 Guest(s)