Posts: 10
Threads: 1
Joined: Feb 2016
Reputation:
0
Hi SAMP community users, can someone make me a zcmd command that allowes only FBI and LSPD to hide their badges ? I mean, it will be useful for undercover operations. And, if possible, when a LSPD detective / FBI Agent type /hidebadge to show a message only for them "You concealed your badge" and make their names white and when they type again to show a message "You took out your badge" and make their names blue. Can someone help me with that ? Because I'm a noob scripter and I don't know how to script that.
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
SA:MP doesn't provide native functions for a faction system or badges, you'll have to give examples of your code that's relevant to faction badges (setting them, hiding them, detecting them).
Posts: 10
Threads: 1
Joined: Feb 2016
Reputation:
0
I mean, when an FBI or LSPD types /hidebadge to get a message with "You concealed your badge" and simply make their names white from blue and when they type again to get a message with "You took out your badge" and make their names blue from white.
For LSPD I have "IsACop"
And for FBI I have "IsFBI"
PS: A command that makes only feds and officers name white from their duty color, blue and vice versa.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Quote:
Originally Posted by kubak01
Aye i wrote this on the forums and didn't even realise this mistake with declaring somehow, thanks for correcting me.
|
This is Scripting Help, not script for you... By simply pasting up bad code, it encourages those who aren't actually following the rules, to continue doing so because they will just get what they want.
They need to provide code themselves, otherwise there should be no help.