+1 score every 20 minutes?
#1

How can I script a script that gives +1 score each 20 minutes? I use Y_INI to save.
Reply
#2

pawn Код:
SetTimer("ScorePlus", 1200000, true); // Under OnGameModeInit
Above the timer
pawn Код:
forward ScorePlus();
public ScorePlus() { for (new i = 0; i < MAX_PLAYERS; i ++) SetPlayerScore(i, GetPlayerScore(i) + 1); }
Reply
#3

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
pawn Код:
SetTimer("ScorePlus", 1200000, true); // Under OnGameModeInit
Above the timer
pawn Код:
forward ScorePlus();
public ScorePlus() { for (new i = 0; i < MAX_PLAYERS; i ++) SetPlayerScore(i, GetPlayerScore(i) + 1); }
pawn Код:
forward ScorePlus();
Reply
#4

Oh, thanks a lot guys <3 I'll be testing it ^^.
Reply
#5

Weird, it's not working :S.
Reply
#6

Quote:
Originally Posted by Guitar
Посмотреть сообщение
Weird, it's not working :S.
Something is wrong on your testing. It will work 100% if you put it on the correct place.
Reply
#7

Should I upgrade YSI files?
Reply
#8

Quote:
Originally Posted by Guitar
Посмотреть сообщение
Should I upgrade YSI files?
If that's the problem then yes.
Reply
#9

Updated, but still now everytime I do smth in the GM doesn't show up, IDK why I'll download the server package again and try.

EDIT: Stupid me, I used to connect to my hosted server not my testing one LOL, anyway thanks a lot guys <3.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)