• Unable to give a class grenades and slammers
    7 replies, posted
Tried everything to look for the correct syntax for giving players weapons, i've found ammo lists but not weapon :/ also as a bonus, my playermodels won't load, they're not custom but comming up with errors, code's like this: Slammer: [CODE] function CLASS:Loadout( pl ) pl:Give ( "weapon_slammer" ) pl:GiveAmmo( 2, "slam" ) [/CODE] Grenade: [CODE] pl:Give( "weapon_grenade" ) pl:GiveAmmo( 3, "grenade" ) [/CODE] player models example: [CODE]CLASS.PlayerModel = "models/player/Male_10.mdl"[/CODE] sorry for the retarted questions, it's driving me nuts! [B]EDIT: fixed slammer and the frag![/B]
[QUOTE=Dave_Parker;19608983]It's because those aren't the entity names :) It's weapon_slam and weapon_frag I believe.[/QUOTE] ah! i found slammer, i'll give the frag a go :) [B]EDIT: GOT THEM! ha! [/B]Thanks so much! sorry about the shit questions, i'm fairly new to this :) any ideas on the player models? would make my day!
[QUOTE=Dave_Parker;19609884]I think you don't have to append models/ to it.[/QUOTE] Still an error the size of my house :|
[code]lua_run print( file.Exists( "models/player/Male_10.mdl" ) ) ] false[/code] It helps if you can just do some simple debugging. Make sure the file exists before you set the model. The correct path is something like "models/player/group03/male_10.mdl"
[QUOTE=Entoros;19611712][code]lua_run print( file.Exists( "models/player/Male_10.mdl" ) ) ] false[/code] It helps if you can just do some simple debugging. Make sure the file exists before you set the model. The correct path is something like "models/player/group03/male_10.mdl"[/QUOTE] yay! thanks so much :)
Sorry, you need to Log In to post a reply to this thread.