Set Player as a marker? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Set Player as a marker? (
/showthread.php?tid=167508)
Set Player as a marker? -
Ash. - 12.08.2010
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
Re: Set Player as a marker? -
akis_tze - 12.08.2010
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
Re: Set Player as a marker? -
Ash. - 12.08.2010
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;
}
Re: Set Player as a marker? -
akis_tze - 12.08.2010
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
Re: Set Player as a marker? -
Ash. - 12.08.2010
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