SA-MP Forums Archive
LItlle help pls!!!!! - 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: LItlle help pls!!!!! (/showthread.php?tid=103026)



LItlle help pls!!!!! - Salekk - 18.10.2009

Helo can you make me a skript wher i can look who is of member of my gang online i ty somtin but its not totaly right

//--------------------------------------------------------- clanovi --------------------------------------------------
if (strcmp(cmd, "/members", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5) { }
else
{
SendClientMessage(playerid,COLOR_GREY," You are not member of Organization!");
}
SendClientMessage(playerid, COLOR_GREENYELLOW, "_______Members Online:________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Clan: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
}


}
return 1;
}

can you make if player is civilian and he use /mambers is mesage "you are nota a member of any org." npr
ens if player is meber of org id 5 nor and use /meber shows members online pls help

sory for my bad english
Thanks


Re: LItlle help pls!!!!! - Hiitch - 18.10.2009

Umm, under your playerinfo, the pMember, what number does the civillian have to be?