Kill Timer Help
#1

I want like that: "AntiSpawnTimerKill" because if not killed the timer this may cause lagg, Here is the CODE
OnPlayerSpawn:
Код:
   if(DMZone[playerid] >= 0)
    {
    SetPlayerHealth(playerid, 100000);
    SetTimerEx("AntiSpawnkill",4000,0,"i",playerid);
	}
Called this:
Код:
forward AntiSpawnkill(playerid);
public AntiSpawnkill(playerid)
{
    if(DMZone[playerid] == 0)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 1)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 2)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 3)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 4)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 5)
    {
    SetPlayerArmour(playerid,50);
   	SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 6)
    {
    SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 7)
    {
	SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 8)
    {
	SetPlayerHealth(playerid,100);
	}
    if(DMZone[playerid] == 9)
    {
	SetPlayerHealth(playerid,40);
    }
    if(DMZone[playerid] == 10)
    {
	SetPlayerHealth(playerid,40);
    }
    if(DMZone[playerid] == 11)
    {
	SetPlayerHealth(playerid,100);
    }
    if(DMZone[playerid] == 12)
    {
	SetPlayerHealth(playerid,100);
    }
    return 1;
}
Reply


Messages In This Thread
Kill Timer Help - by MahdiGames - 11.01.2014, 09:31
Re: Kill Timer Help - by Burridge - 11.01.2014, 09:34
Re: Kill Timer Help - by MahdiGames - 11.01.2014, 09:36
Re: Kill Timer Help - by Burridge - 11.01.2014, 09:39

Forum Jump:


Users browsing this thread: 4 Guest(s)