Jump to content

How to restrict weapons and verhicles


GameZoneX

Recommended Posts

Posted

Hello,

Can anyone tell me how to restrict some weapons or verhicles.

Thanks.

blue2.png

I'm still looking for some scripters for my server, because i am learning it and i'm not good in LUA scripting yet.

Posted

is there no already made resource for it?

blue2.png

I'm still looking for some scripters for my server, because i am learning it and i'm not good in LUA scripting yet.

Posted

There isn't, also this is really easy to make, but i won't do it because i want you to learn it by yourself :P

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I will try :P

And to restrict spawning verhicles at the spawnpoint?

blue2.png

I'm still looking for some scripters for my server, because i am learning it and i'm not good in LUA scripting yet.

Posted

It's the same, also we don't even know of what gamemode we talking about.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Moderators
Posted

Ok so go in your freeroam resource

for weapons, you have to open weapons.xml and delete the lines of the weapons which you want to delete, save the xml and restart the server.

for vehicles, you have to open vehicles.xml and delete the lines of the vehicles which you want to delete, save the xml and restart the server.

Exemple:

I want to restricted the minigun, so I open the weapons.xml and I looking for the minigun and I find this:

<group name="Heavy weapons"> 
        <weapon id="37" name="Flame thrower" /> 
        <weapon id="36" name="Heat seeking RPG" /> 
        <weapon id="38" name="Minigun" /> 
        <weapon id="35" name="Rocket launcher" /> 
</group> 

So I delete the line of the minigun like this:

<group name="Heavy weapons"> 
        <weapon id="37" name="Flame thrower" /> 
        <weapon id="36" name="Heat seeking RPG" /> 
        <weapon id="35" name="Rocket launcher" /> 
</group> 

Enjoy !

The rEvolution is coming ...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...