Uhm, a gang system?
#1

Hey, I'm trying to create this dynamic gang system for my server.

The problem is that any help I can find is always in a different language, and I know english.

Im trying to make a gang system that works for EVERYONE. All factions or anyone solo, (Even Law Enforcement).

I wanna have commands like:

/creategang [Name] // Creates a gang with the name you chose.
/changename [Name] // Changes the name of your current gang (Must be the leader)
/changerank [Name/ID] [Rank 1-5] // Changes the selected members rank, 5 being the highest as leader.
/setrank [1-5] [Name] // Sets the name of said rank. I.E. Rank 5 - Boss, Rank 1 - Soldier etc.
/recruit [ID] // Will invite the player to your gang (Must be leader to work)
/gangkick [ID] // Will kick the player from your gang (Must be leader to work)

So, how would I go about creating a system like this?
Reply
#2

Hmm, give it your best shot any thing your stuck on just ask the community.

I'll get you started

pawn Код:
if(strcmp, cmd, "/recruit", true) == 0)
{
      if(IsPlayerConnected(playerid))
Reply
#3

you could search or post on the script request section

Reply
#4

Yeah but I dont want to act like an ass asking for this system to be done, letting people think I have everyone do my work for me. Its just this im having trouble with.
Reply
#5

Search some gang system or request one
Reply
#6

Quote:
Originally Posted by maltheus
Посмотреть сообщение
Search some gang system or request one
Thank you, for completly ignoring my original post.

But thanks for the link.
Reply
#7

Quote:
Originally Posted by Yamoo
Посмотреть сообщение
Hmm, give it your best shot any thing your stuck on just ask the community.

I'll get you started

pawn Код:
if(strcmp, cmd, "/recruit", true) == 0)
{
      if(IsPlayerConnected(playerid))
That's some seriously sucky code there, you're checking if the player who executed the command is connected. Of course he is lol.
Reply
#8

Quote:
Originally Posted by Matthias_
Посмотреть сообщение
That's some seriously sucky code there, you're checking if the player who executed the command is connected. Of course he is lol.
Obviously not what he ment:

if(strcmp, cmd, "/recruit", true) == 0)
{
if(IsPlayerConnected(playerid)) // Check the given playerid if hes connected
Reply
#9

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Obviously not what he ment:

if(strcmp, cmd, "/recruit", true) == 0)
{
if(IsPlayerConnected(playerid)) // Check the given playerid if hes connected
Clearly not, as the playerid variable is the person who is executing the command...
Reply
#10

Depends if you want to be an ass or not
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)