• Zombie Survival Help
    2 replies, posted
[CODE]include ('shared.lua') include ('config.lua') AddCSLuaFile('shared.lua') hook.Add("PlayerDeath", "Playedead", function (victim, inflictor, attacker) if( IsValid( attacker ) and IsValid( victim ) ) then if( attacker:IsPlayer() and victim:IsPlayer() ) then if (attacker:Team() == TEAM_ZOMBIE ) then attacker:PS_GivePoints( 100 ); attacker:PS_Notify("You have been given 100 points for killing a Human") end end end end) [/CODE] I have a problem giving points to zombies that kill humans. In the zombie survival gamemode for some reason theres 4 teams. The team setup [CODE]team.SetUp(TEAM_ZOMBIE, "The Undead", Color(0, 255, 0, 255)) team.SetUp(TEAM_SURVIVORS, "Survivors", Color(0, 160, 255, 255))[/CODE] but also when I look through the code they also have TEAM_UNDEAD and TEAM_HUMAN I tried both and they dont work. No one receives points? for point shop by undefined?
Does the PS_Notify show up?
[QUOTE=NiandraLades;45609661]Does the PS_Notify show up?[/QUOTE] Nope doesn't come up for both. Weird.
Sorry, you need to Log In to post a reply to this thread.