• DarkRP Zombie class, and vehicle/prop damage
    1 replies, posted
im making a admin only zombie class, i was wondering how would i make it remove all the weapons but the knife, and make it so they cant pick a weapon up and special abilities like faster speed, and higher jump, and health regen and such theres SetPlayerSpeed but i cant figure out where to put it so it sets it higher when a zombie, and lower when they leave zombie also, a friend says to use entitytakedamage to make props and vehicles take damage, but i couldnt figure that oue
[QUOTE=killar456;21208283]im making a admin only zombie class, i was wondering how would i make it remove all the weapons but the knife, and make it so they cant pick a weapon up and special abilities like faster speed, and higher jump, and health regen and such theres SetPlayerSpeed but i cant figure out where to put it so it sets it higher when a zombie, and lower when they leave zombie also, a friend says to use entitytakedamage to make props and vehicles take damage, but i couldnt figure that oue[/QUOTE] In Serverside; [code] function GM:PlayerSpawn( ply ) ply:StripWeapons() ply:Give( "weapon_knife" ) -- or whatever the weapon class name of the knife is ply:SetWalkSpeed( 300 ) --whatever numbers you want here, I think the default speed is 225. ply:SetRunSpeed( 500 )-- I think the default here is 300. ply:SetGravity( 500 ) -- I think the default is 600. This will make you be able to jump higher, if it fucks up just set a different number. end [/code] That code will only check whether or not you're a zombie and set the stuff when a player spawns, so if you want to change that use a different hook. Health regain is a little more tricky and I have to go now, hope it helps.
Sorry, you need to Log In to post a reply to this thread.