Jump to content

i need help with gang cars


jirco

Recommended Posts

Posted

hello everybody i am learning how to script i have a question is it possible to make a script that only members that are in a gang can drive in their cars like a Stafford with plate Mafia is it possible to make a script that when you are in the group mafia you can drive with it but if you are in a other group or in no group it says: You are not in the mafia! also take 2 cars like a infernus and a stafford and you got ranks from 0 to 5, you are rank 1 and you can only drive with the infernus from rank 3 is it possible that it says You need rank 3 to drive this! or a other text?

so can cars only be for gangs?

and take

mafia rank 2 stafford

mafia rank 3 infernus

i get in the infernus when i am rank 2 i get thrown out and a text says: your rank isn't high enough!

already thanks!

Greetings jirco

Posted (edited)
hello everybody i am learning how to script i have a question is it possible to make a script that only members that are in a gang can drive in their cars like a Stafford with plate Mafia is it possible to make a script that when you are in the group mafia you can drive with it but if you are in a other group or in no group it says: You are not in the mafia! also take 2 cars like a infernus and a stafford and you got ranks from 0 to 5, you are rank 1 and you can only drive with the infernus from rank 3 is it possible that it says You need rank 3 to drive this! or a other text?

so can cars only be for gangs?

and take

mafia rank 2 stafford

mafia rank 3 infernus

i get in the infernus when i am rank 2 i get thrown out and a text says: your rank isn't high enough!

already thanks!

Greetings jirco

i can make it locked for teams,you can make acl rank1,rank2,rank3 and lock for ranks

Edited by Guest
Posted
so you mean like a biker team that they can't come in the car?

EXAMPLE: you create team Bikers and lock "cars" that can be driven only by Police. Only Police can drive "cars",Biker team will get outputmessage or gui window

Posted

also you can work with element data, get if a vehicle owned by a group/team and let players enter it.

I guess this what you need:

setElementData -- use this if you are going to add a function to set vehicle owned to a group 
getElementData 
outputChatBox 
cancelEvent 
"onClientVehicleEnter" 

Posted

The plate is easy to edit:

Go to MTA > Server > .... Resources and search your map with the cars

Open the Folder and Edit the .map file with Notepad++

At every car stands the Plate edit the Plate to in this case "Mafia"

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...