08.08.2012, 09:35
you will have to do like:
This is just a simple payday system...
it will obviously not work if you just copy paste it, so just try to understand what happens, and write it yourself
pawn Код:
new paydaytimer[MAX_PLAYERS];
OnPlayerSpawn(playerid)
{
paydaytimer[playerid] = SetTimerEx("Payday",60000,true,"i",playerid);//set a timer when the player spawns
}
forward Payday(playerid);
public Payday(playerid)
{
if(Paydaycount[playerid] == 0)//only go trough the payday code if the paydaycount has reached 0
{
//payday code here
paydaycount = 600;//reset the paydaycount to 0
}
paydaycount--;//every minute, take 1- from the paydaycount
}
public OnPlayerDisconnect(playerid)
{
KillTimer(paydaytimer[playerid]);
}
it will obviously not work if you just copy paste it, so just try to understand what happens, and write it yourself