jirco Posted December 30, 2012 Share Posted December 30, 2012 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 Link to comment
Alen141 Posted December 30, 2012 Share Posted December 30, 2012 (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 December 30, 2012 by Guest Link to comment
jirco Posted December 30, 2012 Author Share Posted December 30, 2012 so you mean like a biker team that they can't come in the car? Link to comment
Alen141 Posted December 30, 2012 Share Posted December 30, 2012 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 Link to comment
Alen141 Posted December 30, 2012 Share Posted December 30, 2012 you can make acl groups: bikerrank1,bikerrank2,bikerrank3 and lock for ranks Link to comment
Sparrow Posted December 30, 2012 Share Posted December 30, 2012 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" Link to comment
ViRuZGamiing Posted December 31, 2012 Share Posted December 31, 2012 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" Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now