dcmd little help :D
#1

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 )

Код:
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;
}
This is the most easy cmd... now, can you help me by giving me some examples on dcmd? (this cmd and anims pls)
Reply


Messages In This Thread
dcmd little help :D - by Rivera - 11.03.2011, 18:10
Re: dcmd little help :D - by Steven82 - 11.03.2011, 18:31
Re: dcmd little help :D - by Rivera - 11.03.2011, 18:58
Re: dcmd little help :D - by Kwarde - 11.03.2011, 19:15
Re: dcmd little help :D - by Rivera - 11.03.2011, 19:18
Re: dcmd little help :D - by Kwarde - 11.03.2011, 19:21
Re: dcmd little help :D - by Rivera - 11.03.2011, 19:29
Re: dcmd little help :D - by Kwarde - 11.03.2011, 19:31
Re: dcmd little help :D - by Rivera - 11.03.2011, 19:32
Re: dcmd little help :D - by Kwarde - 11.03.2011, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)