2 GameTexts for different people
#1

Ok, so I know this is possible, but every way that I have tried to write it has failed.

Basically, I need a way that when a command is entered, the player who typed the command gets one GameText, but everyone else gets another. Ive tried using playerid and id, ive tried seperating it out, on top of 1 or 2 other things, but every time the command is entered, no matter how its written, the one that is displayed for everyone else shows up for the player who typed the command and everyone else. Any help would be appreciated.

I would post code but unfortunately I have none as every time it failed I would delete it and start from scratch.
Reply
#2

Make a new code and we'll explain to you how to make it work.
Reply
#3

For player:

Код:
GameTextForPlayer(playerid...
And everyone else:

Код:
foreach(new target: Player)
{
      if(target != playerid)
      {
             GameTextForPlayer(target...
      }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)