how do i check the job of someone in darkrp?
can i do
[CODE]if ply:Team() == "TEAM_CITIZEN"[/CODE]
[highlight](User was banned for this post ("Asking for help with leaked scripts" - NiandraLades))[/highlight]
[QUOTE=MaccyD;48995905]how do i check the job of someone in darkrp?
can i do
[CODE]if ply:Team() == "TEAM_CITIZEN"[/CODE][/QUOTE]
- Snip. Forgot :Team() returns a number and not a string -
What mib999 said. TEAM_CITIZEN is a global teamID for that job.
Remove the quotes.
ENUMs are constant variables used to hold numbers for things. They can be recognised by an all caps word with underscores where the spaces are. In gmod, teams are stored as enums.
Also this needs to be
[code]if ply:Team() == TEAM_CITIZEN then[/code]
if you don't have 'then' it'll fuck up everything, you probably already knew this but since it was absent from your code I thought i'd mention it
You're helping this guy modify leaked scripts.
[QUOTE=DeathWard;49022109]You're helping this guy modify leaked scripts.[/QUOTE]
Oh wow, just saw the guys name. This guy scammed himself... [URL="https://facepunch.com/showthread.php?t=1456024"]https://facepunch.com/showthread.php?t=1456024[/URL]
[QUOTE=DeathWard;49022109]You're helping this guy modify leaked scripts.[/QUOTE]
What script is he trying to fix that's leaked?
[QUOTE=Splerge;49022359]Oh wow, just saw the guys name. This guy scammed himself... [URL="https://facepunch.com/showthread.php?t=1456024"]https://facepunch.com/showthread.php?t=1456024[/URL][/QUOTE]
He's also somehow "TheCodingBoss"
Sorry, you need to Log In to post a reply to this thread.