SA-MP Forums Archive
Infection ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Infection ? (/showthread.php?tid=174247)



Infection ? - Kitten - 05.09.2010

------


Re: Infection ? - [UG]Scripter - 05.09.2010

What are you trying to do exactly? Please elaberate.


Re: Infection ? - Kitten - 05.09.2010

------


Re: Infection ? - [UG]Scripter - 05.09.2010

if(GetPlayerSkin(playerid) == 285)
{
SendClientMessage(playerid,COLOR_RED," You Have infected a Human!");
SetPlayerHealth(playerid,100);
return 1;
}


Something like that under ur Gteam thing


Re: Infection ? - Kitten - 05.09.2010

------


Re: Infection ? - willsuckformoney - 05.09.2010

well you can do variables lol onplayerspawn connect and death = 0 if not zombie team and when they try to knife or what ever put the non zombie as 1 instead of 0


Re: Infection ? - Retardedwolf - 05.09.2010

OnPlayerKeyStateChange.


Re: Infection ? - [UG]Scripter - 05.09.2010

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

	if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
	 {
            for(new i = 0; i < GetMaxPlayers(); i++)
	if(GetPlayerWeapon(playerid) ==  //  knife ID && GetPlayerSkin(playerid,285))
            if(gTeam[playerid] == Team_ZOMBIE)
            {
         SetPlayerSkin(i,162);
return 1;
}
}
}
There, That will start you off.


Re: Infection ? - Kitten - 05.09.2010

------


Re: Infection ? - [UG]Scripter - 05.09.2010

Quote:
Originally Posted by [UG]Scripter
Посмотреть сообщение
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

	if(newkeys & KEY_FIRE && newkeys & KEY_HANDBRAKE)
	 {
            for(new i = 0; i < GetMaxPlayers(); i++)
	if(GetPlayerWeapon(playerid) ==  //  knife ID && GetPlayerSkin(playerid,285))
            if(gTeam[playerid] == Team_ZOMBIE)
            {
         SetPlayerSkin(i,162);
return 1;
}
}
}
There, That will start you off.
EDITED, Try That to start You off.