30.10.2012, 22:51
i have givecash command but i want to make it that play cant send money to himself and when player send money he will see how much he send and to ho he send and make gametext for player that shows how much money player got
Код:
dcmd_gc(playerid, params[]) { new giveplayerid, money; if(sscanf(params, "ui", giveplayerid, money)) return SendClientMessage(playerid, -1, "Usage: /gc [playerid/PartOfname] [money]"); if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, -1, "This player is not connected."); GivePlayerMoney(giveplayerid, money); SendClientMessage(playerid, -1, "You've sent someone cash."); SendClientMessage(giveplayerid, -1, "You recieved cash."); return 1; }