SA-MP Forums Archive
Gangs chat - 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)
+--- Thread: Gangs chat (/showthread.php?tid=323547)



Gangs chat - danielhertz - 06.03.2012

Hey im making gangs system so..
i need to know how to make a cmd like !-@-# for gang chat like:
! Hello members!
I dont know how to make it with ZCMD... if someone can help me it's will be great!
currently it is COMMAND:gc(playerid, params[])
[gang chat]


Re: Gangs chat - danielhertz - 06.03.2012

And i tried COMMAND:!(playerid, params[]) didnt work ingame..
[EDIT]Sorry my bad i could use EDIT to my main topic..


Re: Gangs chat - Ballu Miaa - 06.03.2012

Quote:
Originally Posted by danielhertz
Посмотреть сообщение
And i tried COMMAND:!(playerid, params[]) didnt work ingame..
[EDIT]Sorry my bad i could use EDIT to my main topic..
Ill code you one. Can ya tell me your gang defines or variables (Is it gTeam[MAX_PLAYERS])?


Re: Gangs chat - danielhertz - 06.03.2012

Thats the code:
Код:
new gang[MAX_PLAYERS][pginfo];
new ganginfo[MAX_GANGS][ginfo];
If someone else can help me it will be good!


Re: Gangs chat - jameskmonger - 06.03.2012

Could you post your pginfo and ginfo enumerations?


Re: Gangs chat - danielhertz - 06.03.2012

Ok here it is:
Код:
enum ginfo
{
	grname[75],
	leader,
	active
};

enum pginfo
{
	gid,
	order,
	invited,
	attemptjoin
};
and somene would help you or not:
Код:
#define MAX_GANGS 100
Код:
for(new x; x<MAX_PLAYERS; x++)
	{
		gang[x][gid] = -1;
		gang[x][order] = -1;
		gang[x][invited] = -1;
		gang[x][attemptjoin] = -1;
	}
I hope you'll help me to make a gang chat cmd with ! @ # kinda.


Re: Gangs chat - jameskmonger - 06.03.2012

I can't make it ! @ # but I can make /gangchat [text]


Re: Gangs chat - danielhertz - 06.03.2012

Man that's the point to make it ! @ or # -.-' someone else can make it or at least teach me?


Re: Gangs chat - jameskmonger - 06.03.2012

Okay, fine. If you would rather have no gang chat than a gang chat that is slightly off of your expectations, I wish you the best of luck. Have a nice day.


Re: Gangs chat - danielhertz - 06.03.2012

"that is slightly off of your expectations" Maybe.
I'm just trying to get options here.(and help, not complaints about if it's off my expectations please)
anyways thank's for trying to help me (rep+)