Asking for help.
#1

Hello guys, i'm working on Hardcore Survival/TDM GM
okay in my server when a player infected he turned as a zombie, and the zombie must infect 5 humans to be a human again, how to do this guys?
alright i know how to turn the player to a zombie when he is infected, but i'm confused how to set the zombie infect 5 humans to be a human again with /human cmd
can someone explain everything for me well?
i hope you to help me guys.
Reply
#2

Код:
 
Global - new PlayerKills[MAX_PLAYERS];
OnPlayerDeath - PlayerKills[killerid] ++;

somewhere where u make the player become a human"
if(PlayerKills[playerid] == 5)
{
SetPlayerSkin or smth idk whatever u use to make him human again
then reset the player kills, PlayerKills[playerid] = 0;
}
Reply
#3

thanks man. ay PM ME
here is REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)