SetPlayerMarkerForPlayer, Help please!
#1

Hello. this function will show marksers on the players who is in the same gang chat, kinda the same as the walkie talkie system, but anyways, these markers doesnt update, so after short time the marker dissappears and it doesnt come back, and i dont know how to make it update every 3th second or something. Can you please help me fixing this.
Код:
stock ShowGang(playah,gang)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][pGang] == gang && !PlayerInfo[i][pBanished])
        {
            SetPlayerMarkerForPlayer(i, playah, 0xFFFFFFAA);
            SetPlayerMarkerForPlayer(playah, i, 0xFFFFFFAA);
            SetTimerEx("HideGang", 1000, false, "ii", playah, gang);
		}
	}
	return 1;
}
Код:
public HideGang(playah,gang){
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][pGang] == gang && !PlayerInfo[i][pBanished])
        {
            SetPlayerMarkerForPlayer(i, playah, 0xFFFFFFAA);
			SetPlayerMarkerForPlayer(playah, i, 0xFFFFFFAA);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)