Niemand kann den Command nutzen ;/
Probiere es mal so:
CMD:pay(playerid, params[])
{
new pID, mon, string[128];
if(sscanf(params, "ud",pID, mon)) return SyntaxMessage(playerid, "/pay [playerid/name] [amount]");
if(mon > 1000 && PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, GREY, " You must be level 3 to pay more than $1,000 at a time.");
if(mon < 1 || mon > 50000 && PlayerInfo[playerid][pAdmin] < 1337) return SendClientMessage(playerid, GREY, " You cannot pay under $1 or more than $50,000 at a time.");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, WHITE, " Not an active player!");
if(pID == playerid) return SendClientMessage(playerid, GREY, " You cannot pay money to yourself.");
if(!ProxDetectorS(5.0, playerid, pID)) return SendClientMessage(playerid, GREY, " You are too far away.");
new playermoney = PlayerInfo[playerid][pCash];
if(mon <= 0 || playermoney < mon) return SendClientMessage(playerid, GREY1, "Invalid transaction amount.");
PlayerInfo[playerid][pCash] -= mon;
GivePlayerMoney(playerid, -mon);
PlayerInfo[pID][pCash] += mon;
GivePlayerMoney(pID, mon);
format(string, sizeof(string), " You have sent %s(player: %d), $%d.", pName(pID), pID, mon);
SendClientMessage(playerid, GREY1, string);
format(string, sizeof(string), " You have recieved $%d from %s(player: %d).", mon, pName(playerid), playerid);
SendClientMessage(pID, GREY1, string);
if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger takes out some Cash, and hands it to %s.",pName(pID));
else format(string, sizeof(string), "* %s takes out some Cash, and hands it to %s.", pName(playerid),pName(pID));
ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerPlaySound(pID, 1052, 0.0, 0.0, 0.0);
new plrIP[16],giveplrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP)),GetPlayerIp(pID, giveplrIP, sizeof(giveplrIP));
format(string, sizeof(string), "%s (IP:%s) (Key:%d) (ConTime:%d) has paid $%d to %s (IP:%s) (Key:%d)", pName(playerid),plrIP,PlayerInfo[playerid][pKey], PlayerInfo[playerid][pConnectTime],mon,pName(pID),giveplrIP,PlayerInfo[pID][pKey]);
PayLog(string);
return 1;
}
mfg. 