Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:bonus(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLevel] <= 2)
- {
- GivePlayerCash(playerid, 35000000);
- PlayerInfo[playerid][pLevel] = 4;
- PlayerInfo[playerid][pPremiumPoints] = 60;
- Update(playerid, pLevelx);
- Update(playerid, pCashx);
- Update(playerid, pPremiumPointsx);
- SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit 35.000.000$, level 4 si 60 puncte premium de bun venit!");
- }
- else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement