Hello, having a PropHunt server working on : http://steamcommunity.com/sharedfiles/filedetails/?id=417565863
I wanted to improve my server but I am stuck with 2 scripts :
-The first script is for giving points when people taunt and give more points for longer taunts :
function PS_GivePoints(ply) if GAMEMODE:InRound() && ply:Alive() && (ply:Team() == TEAM_PROPS) then local pointmult = 1 local pspoints = math.ceil(SoundDuration("taunts/spazz1.mp3") * pointmult) -- This is the name of the taunt ply:PS_GivePoints(pspoints) ply:PS_Notify("You've been given " .. pspoints .. " " .. POINTSHOP.Config.PointsName .." for taunting!") end end
The thing is :
-Where I put this script ?
-How can I make the script for many taunts ?
-The second script is for giving points when hunters kills props :
local amount = 0; hook.Add( "PlayerDeath", "KillPoints", function( victim, weapon, killer) if( IsValid( killer ) and IsValid( victim ) ) then if( killer:IsPlayer() and victim:IsPlayer() ) then if ( killer:Team() == TEAM_HUNTERS and victim:Team() == TEAM_PROPS ) then killer:PS_GivePoints( 5 ); killer:PS_Notify("Tu a gagné 5 points pour avoir tué un prop !"); -- Yea it's a french server end; end; end; end )
Where should I put this script ?
Thanks for people who will help me, I can help for somes scripts on prophunt.