How could i send a message to a few people
#1

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
Reply
#2

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)