Another question. - 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: Another question. (
/showthread.php?tid=318268)
Another question.[Rep +] -
demonarn - 14.02.2012
Is there a function or something to make the player markers only be shown by one team?
If so can you show me it ?
Thanks.
Re: Another question.[+ rep] -
demonarn - 15.02.2012
Bump .
Re: Another question. -
[MG]Dimi - 15.02.2012
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: Another question. -
demonarn - 15.02.2012
Quote:
Originally Posted by [MG]Dimi
|
Could you explain for a bit i dont get the wiki .
Re: Another question. -
BleverCastard - 15.02.2012
So for example you want say the police do /follow [id] it sets a marker for them?
Re: Another question. -
demonarn - 15.02.2012
ok example :
I have 4 teams 3 of them cant see the markers 1 of them can so for three teams the markers are disabled and for 1 team the markers are enabled .
That is what i need to know.
Re: Another question. -
fordawinzz - 15.02.2012
pawn Код:
foreach(new i : Player)
{
if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
SetPlayerMarkerForPlayer(i, playerid, color);
}
return 1;
}
this is an example
Re: Another question. -
demonarn - 15.02.2012
Huh i dont get it i added it changed it a bit but it doesnt work
pawn Код:
foreach(new i : Player)
{
if(gTeam[i] == 2 && gTeam[playerid] == 1)
{
SetPlayerMarkerForPlayer(i, playerid, civic_COLOUR);
}
else if(gTeam[i] == 3 && gTeam[playerid] == 1)
{
SetPlayerMarkerForPlayer(i, playerid,militia_COLOUR);
}
else if(gTeam[i] == 4 && gTeam[playerid] == 1)
{
SetPlayerMarkerForPlayer(i, playerid,criminal_COLOUR);
}
else if(gTeam[i] == 5 && gTeam[playerid] == 1)
{
SetPlayerMarkerForPlayer(i, playerid,refunder_COLOUR);
}
Re: Another question. -
demonarn - 16.02.2012
Bump
Re: Another question. -
demonarn - 17.02.2012
Bump