Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Up Top
- new ScoreTimer;
- // Under OnPlayerConnect(playerid)
- public OnPlayerConnect(playerid)
- {
- ScoreTimer = SetTimerEx("Score", 500, true, "i", playerid);
- return 1;
- }
- //Under OnPlayerDisconnect(playerid)
- public OnPlayerDisconnect(playerid, reason)
- {
- KillTimer(ScoreTimer);
- return 1;
- }
- //End Of Script
- forward Score(playerid);
- public Score(playerid)
- {
- new Money = GetPlayerMoney(playerid);
- SetPlayerScore(playerid, Money);
- }
Advertisement
Add Comment
Please, Sign In to add comment