faction help
#1

i'm trying to build a RP server with factions using gteam i only know how to use it for TDM. though i need someone to explain the following:'

Begin setting up the faction:i need a way to setup the teams NOT RELATED to player selection at start.
restrict commands to certain factions: a medic shouldnt use a tazer
Explain how to make a command toset people in a faction
How to make a rank system
player factions save to a file: how the hell do i do this

NOTE: dont give me a link to other tutorials cuz there no help when i look at em

I did search

I do know scripting basics so dont be rude saying learn to script

Im not asking you to build it just explain it
Reply
#2

forgot to say im using the bare script and nothings in it YET
i usually script DM's
Reply
#3

To begin setting up the faction create a few variables with different names like Cop[MAX_PLAYERS] or medic[..] etc

OnPlayerConnect set the variables to 0, unless you want it to save from a file,
make a command like /joinjob and in that command set the variable to 1.

To restrict commands for certain factions, on your /tazer command you would have to have something in it like

if(Cop[playerid] == 0) return 0;

That tells if the player typing the command isnt a cop it wont work, change Cop to the variable you use to tell if the player is a cop or not.

To make a rank system: It depends on how you want your player to rank up by, if you want him to rank up by the ammount of kills then create a new variable called Kills[MAX_PLAYERS] or something like that and onplayerdeath put Kills[killerid] ++; then if(Kills[killerid] == 10) return RankUP!
thats without saving it to a file though, use dini to save it to a file

there you go
Reply
#4

thats very useful but i need let the leader assign ranks and the leader to set people in job
Reply


Forum Jump:


Users browsing this thread: