08.07.2010, 01:23
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; }