SA-MP Forums Archive
Uhm, a gang system? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Uhm, a gang system? (/showthread.php?tid=173203)



Uhm, a gang system? - Will77 - 01.09.2010

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?


Re: Uhm, a gang system? - Yamoo - 01.09.2010

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))



Re: Uhm, a gang system? - Flake. - 01.09.2010

you could search or post on the script request section




Re: Uhm, a gang system? - Will77 - 02.09.2010

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.


Re: Uhm, a gang system? - Dime - 02.09.2010

Search some gang system or request one


Re: Uhm, a gang system? - Will77 - 02.09.2010

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.


Re: Uhm, a gang system? - Matthias_ - 02.09.2010

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.


Re: Uhm, a gang system? - Cameltoe - 02.09.2010

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


Re: Uhm, a gang system? - Calgon - 02.09.2010

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...


Re: Uhm, a gang system? - Cameltoe - 02.09.2010

Depends if you want to be an ass or not