Posts: 178
Threads: 39
Joined: Jul 2011
Reputation:
0
Hello,
I've got Stevo's SF CnR well, Cyber helped me to do a gang but i want to put permissions on it like /adarmy if it doesnt have /adarmy it can't use that class and that class is law enforcement class i want it to be like civillians. I've got dcmd system.
Posts: 195
Threads: 19
Joined: Apr 2011
I Didn't understand what you basically need, You want /adarmy that only gangs can use it ? or cops ?
Posts: 269
Threads: 2
Joined: May 2011
Reputation:
0
No ,I think he want such like if someone want to joins the Team ,the admin should type /adarmy and his ID,
Well,
Use your gloabel varbiable ,or the single variable in the enum ,and use sscanf for the command.
Posts: 178
Threads: 39
Joined: Jul 2011
Reputation:
0
Elie what i mean is that if u select class if u see like a gang name grove you spawn it spawns but i want it that if u do /adgrove id will give him permissions to be that gang if u dont have /adgrove by admin u can't use it it shall say You do not have permission to use this class.
Posts: 195
Threads: 19
Joined: Apr 2011
Post your /adarmy code here, please
Posts: 178
Threads: 39
Joined: Jul 2011
Reputation:
0
its nothing wrong with /adarmy omg just nevermind its no help please someone post here who can help. Let me just ask cyber tommorow -_- none of u guys helping.
Posts: 178
Threads: 39
Joined: Jul 2011
Reputation:
0
KingTurtle i already did that jeez do you guys have a brain look at my 2nd post in this thread.
Let me explain again?:
1.When i login i see ATEAM blue like a law enforcement.
2.I can use it even without /adateam
3.It shall be that you can't use it if u dont have been /adateam id .
4.if u do not have been /adateam by a admin it shall say hmm
5.You do not have permissions to use this class and etc
6.and this shall be like criminal.
7.I tried to make the color of name and gangzone to lime but its blue omg i setted it to lime.
8. i adde the commands but it says the law enforcements command.
Posts: 195
Threads: 19
Joined: Apr 2011
Quote:
Originally Posted by KingTurtle
Jeez. You already went mad after 1 hour. You need to EXPLAIN it
Use something like
pawn Код:
if(gTeam[playerid] == TEAM_ARMY) { // (things army can do) return 1; }
Add at /adarmy something like
pawn Код:
gTeam[targetid] = TEAM_ARMY;
Save all the stuff in his usefile.
For the gTeam thing, you can view the whole code here
|
That's what i meant, he just need one line to add to the /adarmy thing, and he won't send the code so i can re-send it with it added.