Advertisement
TheKiller

Untitled

Sep 16th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public OnGameModeInit()
  2. {
  3. SetTimer("ScoreUpdate", 5000, true);
  4. return 1;
  5. }
  6.  
  7. forward ScoreUpdate();
  8. public ScoreUpdate()
  9. {
  10. for(new x; x<MAX_PLAYERS; x++)
  11. {
  12. if(!IsPlayerConnected(x)) continue;
  13. SetPlayerScore(x, GetPlayerMoney(playerid));
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement