Здравствуйте! Кинул в мод команду /givemoney, но она только визуально дает денег, т.е. на HUD'e прибавляются, а в /stats их нет и купить ничего нельзя. В чем может быть дело?
PHP код:
CMD:givemoney(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 6)
{
new string[128], targetid, cash;
if(sscanf(params, "ud", targetid, cash)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givemoney [playerid] [money]");
if(IsPlayerConnected(targetid))
{
GivePlayerMoney(targetid, cash);
format(string, sizeof(string), "* You have set %s's cash to an amount of $%d.",GetName(targetid),cash);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
else
{
SendClientMessage(playerid, -1, "You are not authorized to use that command!");
}
return 1;