Here is my code in player.lua
[php]
if (t == TEAM_PC and self:IsUserGroup("silver")) or (self:IsUserGroup("gold")) or (self:IsUserGroup("platinum")) or (self:IsUserGroup("admin")) or (self:IsUserGroup("superadmin"))
then
Notify(self, 1, 4, "Access Granted")
return
end
[/php]
How can I make it so that if the statement is true, it skips the return
[QUOTE=FunkyDiabeetus;23905352]
[php]
if t == TEAM_PC then
if self:IsUserGroup("silver")) or (self:IsUserGroup("gold")) or (self:IsUserGroup("platinum")) or (self:IsUserGroup("admin")) or (self:IsUserGroup("superadmin")) then
Notify(self, 1, 4, "Access Granted")
else
return
end
end
[/php]
Maybe[/QUOTE]
[QUOTE=sintwins;23905563][/QUOTE]
Already tried it, It wont work because when it is else, it is EVERYTHING else, not just people who chose the PC_TECH class
[editline]12:52AM[/editline]
Im am so stuck with this. No one knows how to correctly do it
you make no sense
hmmm
[editline]01:19AM[/editline]
[QUOTE=Nexus435;23906216]you make no sense[/QUOTE]
wtf do you mean I make no sense? A I wanna do is make a certain darkrp class for members of admin, superadmin, silver, gold, and platinum
well doing else return should work fine
[QUOTE=Nexus435;23906253]well doing else return should work fine[/QUOTE]
well it doesnt. try it for yourself. Once you try it, you will see exactly what I mean
Sorry, you need to Log In to post a reply to this thread.