27.11.2013, 22:27
By the way, it looks like you're sending the cash to yourself and not the target
pawn Код:
CMD:givemoney(playerid, params[])
{
new id, ammountcash, givemstring[128];
if(sscanf(params, "ud", id, ammountcash)) return SendClientMessage(playerid, -1, "Use: /pay [Player] [Ammount]");
PlayerInfo[id][Money] += ammountcash; // PlayerInfo[playerid][Money] += ammountcash;
format(givemstring, 128, "You gave him $%d", ammountcash);
SendClientMessage(playerid, -1, givemstring);
return 1;
}