Anti-SpawnKill Tag issue
#1

Hey guys, I'm having a problem, with the Anti-Spawnkill tag, the problem is that it works fine but the problem or issue is that when the player Spawn's, the Tag is displayed and the player's health is blinking, but even after the Timer runs out for the Anti-Spawnkill, 5 seconds, the ridiculous Tag is not destroyed. Below I'll post the code:

Код:
new Text3D:antispawnkill;
Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerHealth(playerid, 99999.0);
	SetPlayerVirtualWorld(playerid, 0);
    SendClientMessage(playerid, 0xFF0000AA, "You can't be killed for 5 second(s) (spawn protection)");
    SetPlayerWantedLevel(playerid, 0);
    SetTimerEx("AntiSpawnkill",PROTECTIONTIME*1500,0,"d",playerid);
    antispawnkill = Create3DTextLabel("Anti-Spawnkill Protected", 0xFF0000FF , 30.0, 40.0, 50.0, 40.0, 0); //SPAWNKILLTAG
    Attach3DTextLabelToPlayer(antispawnkill, playerid, 0.0, 0.0, 0.7);
Код:
public AntiSpawnkill(playerid)
{
    DeletePlayer3DTextLabel(playerid, PlayerText3D:antispawnkill);   //SpawnKill TAG
    SetPlayerHealth(playerid, 100.0);
    SendClientMessage(playerid, 0x00ff00ff, "Anti Spawn kill protection over.");
    return 1;
}
So what's the problem, can anyone help out in this mess?
Reply


Messages In This Thread
Anti-SpawnKill Tag issue - by Sting. - 16.07.2017, 14:11
Re: Anti-SpawnKill Tag issue - by GuilhermeNunes - 16.07.2017, 14:39
Re: Anti-SpawnKill Tag issue - by Sting. - 16.07.2017, 15:55
Re: Anti-SpawnKill Tag issue - by Vince - 16.07.2017, 16:00
Re: Anti-SpawnKill Tag issue - by GuilhermeNunes - 16.07.2017, 16:03
Re: Anti-SpawnKill Tag issue - by Sting. - 16.07.2017, 16:43
Re: Anti-SpawnKill Tag issue - by Paulice - 16.07.2017, 16:47
Re: Anti-SpawnKill Tag issue - by Jefff - 16.07.2017, 18:08
Re: Anti-SpawnKill Tag issue - by Sting. - 16.07.2017, 18:19
Re: Anti-SpawnKill Tag issue - by kubak01 - 16.07.2017, 18:25
Re: Anti-SpawnKill Tag issue - by Sting. - 16.07.2017, 18:32
Re: Anti-SpawnKill Tag issue - by Paulice - 16.07.2017, 18:49
Re: Anti-SpawnKill Tag issue - by Sting. - 17.07.2017, 19:21
Re: Anti-SpawnKill Tag issue - by Paulice - 17.07.2017, 19:40
Re: Anti-SpawnKill Tag issue - by jlalt - 17.07.2017, 19:52
Re: Anti-SpawnKill Tag issue - by Paulice - 17.07.2017, 20:16
Re: Anti-SpawnKill Tag issue - by Arbico - 17.07.2017, 21:56
Re: Anti-SpawnKill Tag issue - by Paulice - 17.07.2017, 22:34

Forum Jump:


Users browsing this thread: 2 Guest(s)