SA-MP Forums Archive
TextDrawShowForAllBut - 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: TextDrawShowForAllBut (/showthread.php?tid=512857)



TextDrawShowForAllBut - AroseKhanNiazi - 13.05.2014

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


Re: TextDrawShowForAllBut - amirab - 13.05.2014

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


Re: TextDrawShowForAllBut - AroseKhanNiazi - 13.05.2014

ok i will try but here u go +rep