SA-MP Forums Archive
how can I do it? - 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: how can I do it? (/showthread.php?tid=187000)



how can I do it? - blackwave - 31.10.2010

It's like... get all admins online and, if a player type command /admins, return all of them, with their names, or as another example, a group member, as:

Код:
1. me
2. you
3. them
and, when the member "them" isn't on this group I told above, return just "me" and "you":

Код:
1. me
2. you
Hope someone can help


Re: how can I do it? - Mike_Peterson - 31.10.2010

use a loop trough players then check if the player is in a group small ex:
if(IsInBlackWavesGroup[i] == 1)
{
formatting of string bla bla with %s from playername %d from playerid(optional).
sendclientmessage(color,string);


Re: how can I do it? - blackwave - 31.10.2010

@ mike_peterson: Hehe, sorry, had to test. Thx, worked perfectly.


Re: how can I do it? - Mike_Peterson - 31.10.2010

Your welcome