Y_Less

Cueball

Nov 17th, 2007
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. //Up Top
  2. new ScoreTimer;
  3.  
  4. // Under OnPlayerConnect(playerid)
  5. public OnPlayerConnect(playerid)
  6. {
  7. ScoreTimer = SetTimerEx("Score", 500, true, "i", playerid);
  8. return 1;
  9. }
  10.  
  11. //Under OnPlayerDisconnect(playerid)
  12. public OnPlayerDisconnect(playerid, reason)
  13. {
  14. KillTimer(ScoreTimer);
  15. return 1;
  16. }
  17.  
  18. //End Of Script
  19. forward Score(playerid);
  20. public Score(playerid)
  21. {
  22. new Money = GetPlayerMoney(playerid);
  23. SetPlayerScore(playerid, Money);
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment