Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. function CheckEvent()
  2. {
  3. if(LoggedPlayers() >= EPlayers)
  4. {
  5. format(gString,sizeof(gString),"The server reach %d players online.",LoggedPlayers());
  6. SendClientMessageToAll(0xFFB870FF, gString);
  7. format(gString,sizeof(gString),"All players received $%s, %d respect points and %d Gold.",FormatNumber(EMoney),ERespect,ECoins);
  8. SendClientMessageToAll(0xFFB870FF, gString);
  9. foreach(new i : Player)
  10. {
  11. if(gLogged[i] == 1)
  12. {
  13. GivePlayerCash(i, EMoney);
  14. PlayerInfo[i][pRespect] += ERespect;
  15. Update(i,pRespectx);
  16. PlayerInfo[i][pCoins] += ECoins;
  17. Update(i,pCoinsx);
  18. BuyLevelMsg(i);
  19. }
  20. }
  21. EPlayers = 1000;
  22. EMoney = 0;
  23. ERespect = 0;
  24. ECoins = 0;
  25. }
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement