- 0
Problema comanda /bonus
-
Similar Content
-
- 3 replies
- 264 views
-
- 4 answers
- 591 views
-
- 1 reply
- 44 views
-
- 10 replies
- 718 views
-
Comanda /spec
By VAurel,
- 4 answers
- 218 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
StrypS
YCMD:bonus(playerid, params[], help) {
if(PlayerInfo[playerid][pLevel] > 1)
return true;
new string[43];
new money = PlayerInfo[playerid][pLevel] * 500000 + random(8000000);
new lvlbonus = PlayerInfo[playerid][pLevel] * 3 + random(5);
new ppbonus = PlayerInfo[playerid][pLevel] * 10 + random(50);
SetPlayerScore(playerid, lvlbonus);
PlayerInfo[playerid][pLevel] += lvlbonus;
UpdateVar(playerid, "Level", 3);
PlayerInfo[playerid][pPremiumPoints] += ppbonus;
UpdateVar(playerid, "PremiumPoints", 3);
GivePlayerCash(playerid, 1, money);
format(string, sizeof(string), "Server Bonus Random: Ai primit %s PremiumPoints, Level %d si %i $.", ppbonus, lvlbonus, FormatNumber(money));
SCM(playerid, -1, string);
return true;
}
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.