Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. CMD:bonus(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(PlayerInfo[playerid][pLevel] <= 2)
  7. {
  8. GivePlayerCash(playerid, 35000000);
  9. PlayerInfo[playerid][pLevel] = 4;
  10. PlayerInfo[playerid][pPremiumPoints] = 60;
  11. Update(playerid, pLevelx);
  12. Update(playerid, pCashx);
  13. Update(playerid, pPremiumPointsx);
  14. SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
  15. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit 35.000.000$, level 4 si 60 puncte premium de bun venit!");
  16. }
  17. else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement