Asking for help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Asking for help. (
/showthread.php?tid=626425)
Asking for help. -
MarkNelson - 14.01.2017
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.
Re: Asking for help. -
ThatFag - 14.01.2017
Код:
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;
}
Re: Asking for help. -
MarkNelson - 14.01.2017
thanks man. ay PM ME
here is REP