SA-MP Forums Archive
Levelup. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Levelup. (/showthread.php?tid=327494)



Levelup. - CStyles - 21.03.2012

Hey,

I was wondering if there's something like that you levelup every payday you recieve.

If someone could help me I would appreciate it.


Re: Levelup. - Bogdan1992 - 21.03.2012

Код:
SetTimer("PayDay", 60 * 1000, true); // Add this on GameModeInit

forward PayDay();
public PayDay(){
	for(new i = 0; i < MAX_PLAYERS; i++){
		if(IsPlayerConnected(i)){
		    GivePlayerScore(i, +1);
		    GivePlayerMoney(i, +1000);
	            SendClientMessageToAll(-1, "Payday!!!!!!!!");
		}
	}
	return 1;
}



Re: Levelup. - CStyles - 21.03.2012

Thanks man,

Do I just copy and past it in my gamemode file? :S