13.03.2011, 20:25
Hello,
my admin command to set cash:
When I want to set example player with 0 id,I type /setcash 0 1000 .It should give 1000 ,but it gives only 49.
It always gives max amount 49.Any help ?
my admin command to set cash:
Код:
dcmd_setcash(playerid, params[])
{
new pID;
if(PlayerInfo[playerid][pAdminLevel] >= 1) {
if(sscanf(params, "us[128]", pID, params[2])) return SendClientMessage(playerid, COLOR_RED, "USAGE: /setcash [playerid] [amount of money]");
if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "This player is not connected");
ResetPlayerMoney(pID);
return SetPlayerMoney(pID,params[2]);
} else if(PlayerInfo[playerid][pAdminLevel] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not admin.");
return 1;
}
It always gives max amount 49.Any help ?


