|
Need help for my Gamemode
|
|
11-16-2012, 08:10 PM
Post: #1
|
|||
|
|||
|
Hi,
I'm making a gamemode for an event. And my gamemode won't work so I need you to help me fix it. My Gamemode : https://dl.dropbox.com/u/42061161/Garry%27sRace.rar Thanks if you can help me. ![]()
|
|||
|
11-16-2012, 08:15 PM
Post: #2
|
|||
|
|||
|
RE: Need help for my Gamemode
Code: function CheckSpecialCharacters( ply ) //This function is called upon on GM:PlayerInitialSpawnyeaaaah no. there's a lot of mistakes, i'll edit this post when i fix them. |
|||
|
11-16-2012, 08:18 PM
Post: #3
|
|||
|
|||
|
RE: Need help for my Gamemode
Thanks
![]()
|
|||
|
11-16-2012, 08:30 PM
Post: #4
|
|||
|
|||
|
RE: Need help for my Gamemode
|
|||
|
11-16-2012, 08:40 PM
Post: #5
|
|||
|
|||
|
RE: Need help for my Gamemode
Little question, since I don't see it on the main menu, how do I run it ?
I do changelevel gm_construct Garry's Race and it don't work... ![]()
|
|||
|
11-16-2012, 08:43 PM
Post: #6
|
|||
|
|||
|
RE: Need help for my Gamemode
Why are you using a specific steam id shouldn't you log the id then have it check if they have joined before?
|
|||
|
11-16-2012, 08:51 PM
Post: #7
|
|||
|
|||
RE: Need help for my Gamemode
(11-16-2012 08:43 PM)Residualgrub Wrote: Why are you using a specific steam id shouldn't you log the id then have it check if they have joined before? It's just for the admins, if he's ID is BLABLABLA he join the Team 2 and get the weps. ![]()
|
|||
|
11-16-2012, 09:00 PM
Post: #8
|
|||
|
|||
RE: Need help for my Gamemode
(11-16-2012 08:51 PM)_FR_Starfox64 Wrote:Ah ok that makes sense(11-16-2012 08:43 PM)Residualgrub Wrote: Why are you using a specific steam id shouldn't you log the id then have it check if they have joined before? |
|||
|
11-16-2012, 09:01 PM
(This post was last modified: 11-16-2012 09:02 PM by Phoenix.)
Post: #9
|
|||
|
|||
|
RE: Need help for my Gamemode
the LUA file was scripted to join team 3, i'm assuming this is wrong, unless you changed it.
other than that, wouldn't it be more effective to use ply:IsAdmin() i'm not quite sure of your intentions. |
|||
|
11-16-2012, 09:14 PM
(This post was last modified: 11-16-2012 09:24 PM by _FR_Starfox64.)
Post: #10
|
|||
|
|||
RE: Need help for my Gamemode
(11-16-2012 09:01 PM)Phoenix Wrote: the LUA file was scripted to join team 3, i'm assuming this is wrong, unless you changed it. I will not use any admin mod so I can't put an admin list somewhere so I used this. And can you tell me how to run it like I said... (11-16-2012 09:01 PM)Phoenix Wrote: the LUA file was scripted to join team 3, i'm assuming this is wrong, unless you changed it. This will be like a whitelist so only them will be able to join the team then I will just have to remove the Button/Command to join the Team 2 (Admin) ![]()
|
|||
|
11-17-2012, 01:47 AM
Post: #11
|
|||
|
|||
|
A huge thanks to Phoenix who helped me a lot (But removed the specialchars.lua, I just let it on the menu cause the gamemode is for a private server so I don't care)
I have a question, How I can only allow the team_2 from no-cliping and using spawn menu ? ![]()
|
|||
|
11-17-2012, 02:00 AM
(This post was last modified: 11-17-2012 02:00 AM by Rodrigo 4Ever.)
Post: #12
|
|||
|
|||
RE: Need help for my Gamemode
(11-17-2012 01:47 AM)_FR_Starfox64 Wrote: I have a question, How I can only allow the team_2 from no-cliping and using spawn menu ? Code: hook.Add("PlayerNoClip", "Team2Noclip", function( ply )Drakehawke: i was going to ask whether i should wank to straight or gay porn today |
|||
|
11-17-2012, 02:07 AM
Post: #13
|
|||
|
|||
RE: Need help for my Gamemode
(11-17-2012 02:00 AM)Rodrigo 4Ever Wrote:(11-17-2012 01:47 AM)_FR_Starfox64 Wrote: I have a question, How I can only allow the team_2 from no-cliping and using spawn menu ? Thanks but can you block them from showing the spawn menu too ? ![]()
|
|||
|
11-17-2012, 04:07 AM
(This post was last modified: 11-17-2012 04:08 AM by Rodrigo 4Ever.)
Post: #14
|
|||
|
|||
|
RE: Need help for my Gamemode
Seriously, stop what you are doing because you clearly lack any and all knowledge in lua, start doing something smaller, don't jump in the wagon of gamemodes straight off without any knowledge. But if you insist, try looking at the gmod wiki, seriously...
the code below is CLIENT SIDE ONLY Code: hook.Add( "SpawnMenuOpen", "DisallowSpawnMenu", function( ply )Drakehawke: i was going to ask whether i should wank to straight or gay porn today |
|||
|
11-17-2012, 09:40 AM
(This post was last modified: 11-17-2012 09:41 AM by _FR_Starfox64.)
Post: #15
|
|||
|
|||
|
RE: Need help for my Gamemode
Calm down,
I found the right way for the props, I just made Players unable to spawn props like this : Code: function SpawnedProp(ply, model, ent)And I used this in shared.lua for the noclip : Code: local function DisableNoclip( Ply )![]()
|
|||
|
11-17-2012, 10:51 AM
Post: #16
|
|||
|
|||
|
RE: Need help for my Gamemode
the fact is, we're not going to spoon feed you information, the way I learned was firstly looking at the old GMod LUA Tutorials, that way I got the overall basis of LUA's structure. then I experimented, used the wiki hundreds of times, then realized I was actually learning something.
now look where I am, I can actually code fairly above-normal scripts and a simple HUD provided I can access the wiki at 'some' times, though I am actually starting to stop using the wiki as I know what to do now. tl;dr: we won't keep helping you, use the wiki and experiment yourself. |
|||
|
11-17-2012, 02:34 PM
Post: #17
|
|||
|
|||
RE: Need help for my Gamemode
(11-17-2012 10:51 AM)Phoenix Wrote: the fact is, we're not going to spoon feed you information, the way I learned was firstly looking at the old GMod LUA Tutorials, that way I got the overall basis of LUA's structure. then I experimented, used the wiki hundreds of times, then realized I was actually learning something. You never are going to stop using the Wiki, doubtfully you are going to remember all functions, their parameters and exceptions for stuff. The wiki is made for that, even the most pro coders use the wiki for the functions, maybe even for some examples, but mainly for the function documentation. Drakehawke: i was going to ask whether i should wank to straight or gay porn today |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)




![[Image: Signature%20_FR_Starfox64.jpg]](https://dl.dropbox.com/u/42061161/Signature%20_FR_Starfox64.jpg)








