Set Player as a marker?
#1

Hi all,
Is there anyway i can change a players colour, only for a certain player?

Its and assistance system, and when a player (for example, id 0) types /assistance a member of the assistance team (for example, id 1) will come and help them, but i need id 0 to become some sort of marker for id 1 to come to, otherwise how will he know where id 0 is?

Anyway, how would i do this?

Thanks
Ash
Reply
#2

i do not think you can do that only for a certain player..
but you can do it with checkpoints... when the one player type /assistance a checkpoint will apear in the pos of the player
the other player will see the checkpoint and he will go to help
Reply
#3

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
i do not think you can do that only for a certain player..
but you can do it with checkpoints... when the one player type /assistance a checkpoint will apear in the pos of the player
the other player will see the checkpoint and he will go to help
Damn - But i never thought of that checkpoint idea, thanks

I take it you mean something like this:

pawn Код:
if(strcmp("/assistance", cmdtext) == 0)
{
     //Some text saying that theyve been called.
     new Float:x, Float:y, Float:z;
     GetPlayerPos(playerid, x, y, z);
     for(new i; i < MAX_PLAYERS; i++)
     {
          if(GetPlayerTeam(i) == 2) //My assistance team
          {
               //Some message stuff
               SetPlayerCheckpoint(i, x, y, z, 10);
          }
     }
     return 1;
}
Reply
#4

exactly! also you can add a timer to update player and checkpoint pos.. if the player need to moved from the place that he do /assistance
Reply
#5

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
exactly! also you can add a timer to update player and checkpoint pos.. if the player need to moved from the place that he do /assistance
The player that typed /assistance will be locked, and so it wouldnt matter
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)