[HELP] Problem with SetPlayerMarkerForPlayer
#1

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 ?
Reply
#2

PHP код:
public inf2(playerid)
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
team[i] == 2)
        {
            
SetPlayerMarkerForPlayer(playeridiRED );
        }
    }
    return 
1;

Working?
Reply
#3

NVM fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)