20.02.2010, 11:01
OK guys , I've got a problem with my infection system.
The problem is: When a zombie infect a person he loose health ( that's good ) BUT when he receive 0HP he dies of course but doesn't re spawn why? I don't know . If I remove my re spawn system after infection they still spawn with the infection and dies over and over.
Here's my re spawn system , It's located in Onplayerspawn and onplayerdeathreason ( Security reasons )
Any ideas?
The problem is: When a zombie infect a person he loose health ( that's good ) BUT when he receive 0HP he dies of course but doesn't re spawn why? I don't know . If I remove my re spawn system after infection they still spawn with the infection and dies over and over.
Here's my re spawn system , It's located in Onplayerspawn and onplayerdeathreason ( Security reasons )
Код:
else if(Infected[playerid] == 1)//Infected ID { gTeam[playerid] = 5; //Makes your status to zombie. PlayerInfo[playerid][pTeam] = 5; SetPlayerColor(playerid,TEAM_ZOMBIE_COLOR); SetPlayerWeapons(playerid); ShowPlayerMarkers(1); Infected[playerid] = 0; SetPlayerRandomSpawn(playerid); format(string, sizeof(string), "%s got infected and died, Another zombie!", name); SendClientMessageToAll(COLOR_RED, string); return 1; }