• My ConCommand doesn't work ?
    2 replies, posted
So I've made a ConCommand for spawning a jeep but admin only : [CODE]concommand.Add( "jw_jeep_spawn",function( ply,args ) if !ply:IsSuperAdmin() then print( ply:Nick().." tried to spawn a Combat Jeep but he isn't a superadmin !" ) return end if args[1]=="multi" then jeep = ents.Create("combat_jeep1") jeep:SetPos(ply:GetPos() + Vector(0,50,0)) jeep:Spawn() jeep:Activate() print( ply:Nick().." spawned a Multi Combat Jeep !" ) elseif args[1]=="single" then jeep = ents.Create("combat_jeep2") jeep:SetPos(ply:GetPos() + Vector(0,50,0)) jeep:Spawn() jeep:Activate() print( ply:Nick().." spawned a Single Combat Jeep !" ) end end, nil, "This command simply spawn the desired Combat Jeep type near you." )[/CODE] But this doesn't work for some reason. And yes I'm a superadmin since i'm running a listen server.
function( ply,args ) wrong.
It's function(ply, cmd, args). [url]http://wiki.garrysmod.com/page/concommand/Add[/url]
Sorry, you need to Log In to post a reply to this thread.