- 0
Problema /givemoney
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Marius Adrian Mihaila
Salut
Am si eu o problema , cand dau /givemoney sau /money /set money dau banii dar se actualizeaza doar in /stats nu si pe ecran in dreapta , se actualizeaza doar dupa ce primeste bani de la payday/job etc .
YCMD:givemoney(playerid, params[], help) {
if(PlayerInfo[playerid][pAdmin] < 7) return SCM(playerid, COLOR_WHITE, AdminOnly);
new money[25],id;
if(sscanf(params, "us[25]",id,money)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/givemoney <playerid/name> <Suma>");
if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
if(CheckerBigInt(money) != 0) return true;
Translate32Bit(StoreMoney[id], MoneyMoney[id], money);
gString[0] = EOS;
format(gString, sizeof(gString), "(/givemoney) {FFFFFF}%s give %s, $%s money", GetName(playerid), GetName(id), FormatNumberss(money));
SendAdminMessage(COLOR_WARNING, gString, 7);
format(gString, sizeof(gString), "Admin-ul %s ti-a dat $%s", GetName(playerid), FormatNumberss(money));
SCM(id, COLOR_WHITE, gString);
Update(id, pCashx);
format(gString, sizeof(gString), "%s a primit $%s de la %s", GetName(id), FormatNumberss(money), GetName(playerid));
InsertLog(id, gString, LOG_MONEY);
return true;
}
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now