29.07.2012, 16:57
Hello, i have gangchats in my roleplay server, when you type /joingang [number] it will show you a marker at the minimap for all the players in the gang, but after shortly time the marker will be gone, is there a way to update the marker every 2 second? or something like that
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, 0xAFAFAFAA);
SetPlayerMarkerForPlayer(playah, i, 0xAFAFAFAA);
}
}
return 1;
}
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, 0xAFAFAFAA);
SetPlayerMarkerForPlayer(playah, i, 0xAFAFAFAA);
}
}
return 1;
}