11.03.2011, 18:10
Hi all! I am new in the forums and new in using dcmd. Until now I was using zcmd and I have some problems. These are "some" of my zcmd cmds (only few, I rebooted my PC two days before and lost about 60 anims and cmds )
This is the most easy cmd... now, can you help me by giving me some examples on dcmd? (this cmd and anims pls)
Код:
COMMAND:pay(playerid, params[]) { new targetid, value; if (sscanf(params, "ui", targetid, value)) SendClientMessage (playerid, 0xBDB76BAA, "ERROR: /pay [targetid] [value]"); else if (value > GetPlayerMoney(playerid)) SendClientMessage (playerid, 0xBDB76BAA, "You can't afford that much"); else if (targetid == INVALID_PLAYER_ID) SendClientMessage (playerid, 0xBDB76BAA, "Player Not Found"); else { GivePlayerMoney (playerid, 0- value); GivePlayerMoney (targetid, value); SendClientMessage (playerid, 0xBDB76BAA, "You have sent %i to %u"); SendClientMessage (playerid, 0xBDB76BAA, "You received %i from %u"); } return 1; }