General > Developers Corner
Replacement Function from ASSMod?
rocky123xo:
Awesome. No wonder everyone loves ULX, it's much better than the rest :P
rocky123xo:
So now, if I do:
"if !Player:CheckGroup("vip") then"
This is the same as saying:
If the player is not VIP or any group that inherits from VIP (admin, superadmin, etc)
Correct? Sorry if that is confusing.
Bytewave:
--- Quote from: rocky123xo on April 15, 2015, 11:25:31 PM ---So now, if I do:
"if !Player:CheckGroup("vip") then"
This is the same as saying:
If the player is not VIP or any group that inherits from VIP (admin, superadmin, etc)
Correct? Sorry if that is confusing.
--- End quote ---
Yes. This would return true for all groups below vip. vip and above will return false.
MrPresident:
--- Quote from: rocky123xo on April 15, 2015, 11:25:31 PM ---So now, if I do:
"if !Player:CheckGroup("vip") then"
This is the same as saying:
If the player is not VIP or any group that inherits from VIP (admin, superadmin, etc)
Correct? Sorry if that is confusing.
--- End quote ---
That will work, but if you'll allow me to play Devil's Advocate here:
Try not to use ! to mean 'not'. It's an operator that Garry added to lua and is not standard.
Instead us: if not Player:CheckGroup( "vip" ) then
rocky123xo:
Awesome, I really appreciate all the help given to a noob like me.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version