25.02.2011, 07:42
Hey, I want to make /pay command using ProxDetector, can you make it, here are few things that may help you.
Format for all players near 40 meters:
And for the receiver:
Код:
ProxDetector(40.0, playerid, str, COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION);
Код:
SendClientMessage(playerid, COLOR_GREY, "USAGE: /pay [PlayerID/PartofName] [Amount]"); SendClientMessage(playerid,COLOR_GREY, "You do not have that amount of money."); SendClientMessage(playerid,COLOR_GREY, "The player ID/Name entered is INVALID.");
Код:
"%s takes out some money and gives it to %s"
Код:
"You have recieved $%i from %s"