[HELP] Problem with SetPlayerMarkerForPlayer - 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: [HELP] Problem with SetPlayerMarkerForPlayer (
/showthread.php?tid=381409)
[HELP] Problem with SetPlayerMarkerForPlayer -
Amine_Mejrhirrou - 29.09.2012
My goal in this script is to make a Player X (From Team1) Can See All the otheres players Y
so i've make a timer at the top of the GameMod
Код:
inf2(playerid);
new inf[MAX_PLAYERS];
then , when the player Spawn
Код:
inf[playerid] = SetTimerEx("inf2", 5000, true, "i", playerid);
and finaly
Код:
public inf2(playerid)
{
if(team[playerid] == 2)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(playerid, i, RED );
}
return 1;
}
but looks like this code is not working , the player can't see the otheres on the map
Any sugestion to fix that or any one have an idea where the problem came from ?
Re: [HELP] Problem with SetPlayerMarkerForPlayer -
Shinki - 29.09.2012
PHP код:
public inf2(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(team[i] == 2)
{
SetPlayerMarkerForPlayer(playerid, i, RED );
}
}
return 1;
}
Working?
Re : [HELP] Problem with SetPlayerMarkerForPlayer -
Amine_Mejrhirrou - 29.09.2012
NVM fixed