Anti-Spawn Killing Bug
#1

I made a anti spawn killing system last night. Today I realized, that when anyone spawns, it set's their health to 100. I know what the bug is, just not sure how to fix it.

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerRandomSpawn(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerMoney(playerid, 10000);
    SendClientMessage(playerid, ORANGE, "The bank has gifted you $10,000!");
    SendClientMessage(playerid, RED, "ANTI SPAWN KILL: 15 Seconds left!");
    SetPlayerHealth(playerid, 1000000.0);
    SetTimer("SpawnKill", 15000, false);
    return 1;
}

forward SpawnKill(playerid);
public SpawnKill(playerid)
{
    SetPlayerHealth(playerid, 100.0);
    SendClientMessage(playerid, GREEN, "ANTI SPAWN KILL: Disabled!");
    return 1;
}
Reply


Messages In This Thread
Anti-Spawn Killing Bug - by ScottCFR - 26.07.2010, 21:30
Re: Anti-Spawn Killing Bug - by Jefff - 26.07.2010, 21:32
Re: Anti-Spawn Killing Bug - by ScottCFR - 26.07.2010, 21:34
Re: Anti-Spawn Killing Bug - by Jefff - 26.07.2010, 21:49
Re: Anti-Spawn Killing Bug - by ScottCFR - 26.07.2010, 21:52
Re: Anti-Spawn Killing Bug - by willsuckformoney - 26.07.2010, 21:57
Re: Anti-Spawn Killing Bug - by Jefff - 26.07.2010, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)