21.01.2013, 12:30
(
Последний раз редактировалось Mikkel_RE; 21.01.2013 в 13:28.
)
Hey, how do i make the playermaker update every 5 second? because when it is like that, the marker will dissappear after some time.
Код:
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; }