• Need Help! How to make the muder spawn with certain weapons depending on rank (Murder)
    45 replies, posted
Wrap your code in [noparse][code][/code][/noparse] or [noparse][lua][/lua][/noparse]
[code] hook.Call( "PlayerLoadout", GAMEMODE, ply ) hook.Call( "PlayerSetModel", GAMEMODE, ply )[/code] would that have to do with anything? as in if i put the hook the function doesnt have a name soo it wouldnt call anything?
[QUOTE=JewishZebra;44260816][code] hook.Call( "PlayerLoadout", GAMEMODE, ply ) hook.Call( "PlayerSetModel", GAMEMODE, ply )[/code] would that have to do with anything? as in if i put the hook the function doesnt have a name soo it wouldnt call anything?[/QUOTE] No. Just copy Matt's code. Those are random gamemode hooks and have nothing to do with what you're asking.
[IMG]http://puu.sh/7ylRa.jpg[/IMG] it gives me that error and no matter how many people there is in the game it wont start or let me join a team [editline]16th March 2014[/editline] ^^ Let me get a fresh file and ill retry it. then ill tell you if i get the same thing [editline]16th March 2014[/editline] [IMG]http://puu.sh/7ylOR.jpg[/IMG] Now its creating too much lua errors
Matt's code doesn't even touch mu_jointeam. You must have deleted/overrided a function. [editline]16th March 2014[/editline] Put sv_kickerrornum 0 in your server.cfg and post the error you're getting.
good and bad news! Katana works... but im getting lua errors when trying to talk :[IMG]http://puu.sh/7ymyf.jpg[/IMG] and here is the console: [IMG]http://puu.sh/7ymwR.jpg[/IMG]
Can you try removing your addons and seeing if it fixes the error? I'm assuming that you didn't mess with the core cl_hud and that an addon is doing something.
^^ i really wish i had a private server to do this in... i have like 20 people in my server -_-. soo i delete(take out of foulder) every addon exept for the 2 sweps? [editline]16th March 2014[/editline] added you on steam if you dont mind^^
Just move the addons to another folder or something. From there, you can narrow down which addon is causing the issue.
[code][ERROR] gamemodes/murder/gamemode/cl_voicepanels.lua:87: attempt to call method 'GetBystanderName' (a nil value) 1. SetBystanderState - gamemodes/murder/gamemode/cl_voicepanels.lua:87 2. CheckBystanderState - gamemodes/murder/gamemode/cl_voicepanels.lua:66 3. Setup - gamemodes/murder/gamemode/cl_voicepanels.lua:40 4. unknown - gamemodes/murder/gamemode/cl_voicepanels.lua:159[/code] Thats with no addons exept for the katana and bowie knife.
Bump For help!
Bump for help :(
The function: GetBystanderName is not defined. This can be because you defined it on SERVER when it's needed on CLIENT, vice versa, the function is declared after that line is called ( if it's linear code ), or you didn't declare the function at all. Without code, there's nothing we can do. What went wrong with all of the other help in this thread? Everyone seemed to pitch in quite a bit, where are you stuck?
[QUOTE=Acecool;44309495]The function: GetBystanderName is not defined. This can be because you defined it on SERVER when it's needed on CLIENT, vice versa, the function is declared after that line is called ( if it's linear code ), or you didn't declare the function at all. Without code, there's nothing we can do. What went wrong with all of the other help in this thread? Everyone seemed to pitch in quite a bit, where are you stuck?[/QUOTE] Well i have tried over 5 codes. i have just recently tried to just switch the regular knife soo you spawn with a different one no matter what rank you are. i am getting this error where it wont let me join a team in console its says "Unknown command mu jointeam" it has happend for about 4 codes and one just gave me a shit ton of errors. it worked with it came to spawing in with the weapons but it would kick me off the server as posted above in pictures. i am running my server on a defult code right now so people can play on it, but i have saved files with modified codes. i have a feeling i am putting this function in the wrong file. do you want me to send you my modifided codes?
Maybe you should open a job on coderhire, it seems that we can't really help you...
Sorry, you need to Log In to post a reply to this thread.