TextDrawShowForAllBut
#1

pawn Код:
forward TextDrawShowForAllBut(playerid,const Text:TextDraw);
public TextDrawShowForAllBut(playerid,const Text:TextDraw)
{
   for(new i = 0; i < MAX_PLAYERS; i ++)
   {
      if(!IsPlayerConnected(i)) continue;
      if(playerid == i) continue;

      TextDrawShowForPlayer(i,TextDraw);
   }
}
Sometimes it shows the textdraw to the player we don't want to show for example i don't want to show the message to the command user but it does mostly
Reply
#2

PHP код:
forward TextDrawShowForAllBut(playerid,const Text:TextDraw);
public 
TextDrawShowForAllBut(playerid,const Text:TextDraw)
{
   for(new 
0MAX_PLAYERS++)
   {
      if(
IsPlayerConnected(i))
      {
        if(
playerid != i)
        {
            
TextDrawShowForPlayer(i,TextDraw);
        }
      }
   }

Don't Forget MY Rep
Reply
#3

ok i will try but here u go +rep
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)