SA-MP Forums Archive
How could i send a message to a few people - 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: How could i send a message to a few people (/showthread.php?tid=355670)



How could i send a message to a few people - Euan Hughes - 30.06.2012

So what im trying to do is when a player spectates another plater it will send admins a message ( if there admin level is 6 or over ) but i dont know how to send admin level 6 or over the message without sending it to everyone else

This is what i have so far

pawn Код:
if(Player[playerid][AdminLevel] >= 6)
                {
                    format(string, sizeof(string), "Admin %s has started to spectate %s", GetName(playerid), GetName(id));
                    SendToAdmin(WHITE, string);
                                }
If you need any more code just ask

Thanks


Re: How could i send a message to a few people - Mean - 30.06.2012

pawn Код:
format(string, sizeof(string), "Admin %s has started to spectate %s", GetName(playerid), GetName(id));
for(new i=0;i<MAX_PLAYERS;++i) if(Player[i][AdminLevel] >= 6) SendClientMessage(i, WHITE, string);