Clan system?.
#1

Hellu. im lana.

uhm, is there a clan script?
its look like this :

if you type /clans it will show you

1. [G]irls Members : [2]
2. [CLAN] Members : [How much members]
3. [CLAN] Members : [How much members]
4. [NONE] Members : [How much members]

the clan script needed for reallife so.
i have already searched on this forum but i can't find it.
if you have one or found one can you give me please the link of it.
Sorry for my bad english
really thanks.
Reply
#2

I think you have to use teams as "clans".


First, you have to create your team. Then get the player's team with GetPlayerTeam.


Now you have to make your command, and it should look like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/clanembers", cmdtext, true) == 0)
{
new Clan[MAX_PLAYERS];
new string[128];
Clan[playerid] = GetPlayerTeam(playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
if(Clan[i] == YourClan)
{
format(string, sizeof(string), "YourClan Members: %d", i);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
return 1;
}
return 0;
}

Have fun... lol
Reply
#3

iim.. really bad at scripten. so u can script the whole thing or is it too much work ;d?
Reply
#4

I can't make the whole script for you, due to I don't know what I have to do with the teams. You maybe already have teams/clans... How should I know? And you won't learn anything by copying and pasting my codes without even looking at them. The sa-mp wiki - wiki.sa-mp.com could possilbly help you through the most of your scripting problems.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)