- 0
Problema comanda /bonus
-
Similar Content
-
- 5 answers
- 663 views
-
- 1 answer
- 384 views
-
- 8 answers
- 828 views
-
Problema billboards (la expirarea billboard-ului nu seteaza variabila Billboard 0 jucatorului offline)
By cstef4n,
- 2 answers
- 615 views
-
- 7 answers
- 2.935 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;
}
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