I understand that entities have different variables such as the allowed one to set a entity to only a certain job/class. Is there a way to flip this like for example, not allowed jobs. The reason why i come here to ask first is because i dont want to restart my server with 50+ players on it then have a lua problem. Kinda looks bad ya know xD
[CODE]
DarkRP.createEntity( "Entity Number 100000000", {
ent = "NothingHere",
model = "MoodleNumber69",
price = 1337,
max = 666,
cmd = "buythisthingy",
notallowed = criminalTeams --<--- EXAMPLE
} )
[/CODE]
Im guessing here becuase im kinda a beginner but cant you use something like team.GetName( Entity( 1 ):Team() ) ? Just a guess though
I just want it to allow every team but 1-10 teams and that cant specify the teams i dont want so no
[QUOTE=Lucifer1;51284210]I just want it to allow every team but 1-10 teams and that cant specify the teams i dont want so no[/QUOTE]
You can if you seperate the team names with commas.
[code]
DarkRP.createEntity( "Entity Number 100000000", {
ent = "NothingHere",
model = "MoodleNumber69",
price = 1337,
max = 666,
cmd = "buythisthingy",
allow = {TEAM_MEDIC, TEAM_THIEF, TEAM_MAYOR, etc}
} )
[/code]
Yes i understand that, but i would like to have notallow or something because i have like 100+ jobs and i only want one of them not to be able to spawn the entity
[editline]30th October 2016[/editline]
[CODE]
DarkRP.createEntity( "Entity Number 100000000", {
ent = "NothingHere",
model = "MoodleNumber69",
price = 1337,
max = 666,
cmd = "buythisthingy",
notallow = {TEAM_MEDIC, TEAM_THIEF, TEAM_MAYOR, THIS_TEAM_IS_NOT_ALLOWED_TO_BUY_THIS, ect.}
} )
[/CODE]
EXAMPLE ^^^^
Sorry, you need to Log In to post a reply to this thread.