25.02.2011, 08:56
untested but should work
pawn Код:
CMD:pay(playerid,params[])
{
new amount, name[MAX_PLAYER_NAME];
if(sscanf(params,"s[24]d",name,amount)) return SendClientMessage(playerid,COLOR_GREY,"use: /pay name amount (note this command doesn't do anything)");
new s[64];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(s,sizeof(s),"%s takes out some money and gives it to %s",pname,name);
ProxDetector(40.0, playerid, s, COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION);
}