Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CheckEvent()
- {
- if(LoggedPlayers() >= EPlayers)
- {
- format(gString,sizeof(gString),"The server reach %d players online.",LoggedPlayers());
- SendClientMessageToAll(0xFFB870FF, gString);
- format(gString,sizeof(gString),"All players received $%s, %d respect points and %d Gold.",FormatNumber(EMoney),ERespect,ECoins);
- SendClientMessageToAll(0xFFB870FF, gString);
- foreach(new i : Player)
- {
- if(gLogged[i] == 1)
- {
- GivePlayerCash(i, EMoney);
- PlayerInfo[i][pRespect] += ERespect;
- Update(i,pRespectx);
- PlayerInfo[i][pCoins] += ECoins;
- Update(i,pCoinsx);
- BuyLevelMsg(i);
- }
- }
- EPlayers = 1000;
- EMoney = 0;
- ERespect = 0;
- ECoins = 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement