ShowPlayerMarker
#3

pawn Код:
new Shown[MAX_PLAYERS] = -1;

if (strcmp("/showme", cmdtext, true, 7) == 0)
    {
        if(Shown[playerid] == -1) {
            for(new i=0; i<MAX_PLAYERS; i++) {
                // Make the players marker red to all currently online players.
                SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
            }
            Shown[playerid] = 1;
            SetTimerEx("HideMarker", 60000*5, 1, "i", playerid);
        }
        else return 0; //Already shown!
    }
    return 0;
}

forward HideMarker(playerid);
public HideMarker(playerid)
{
    for(new i=0; i<MAX_PLAYERS; i++) {
        SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00 );
        Shown[playerid] = -1;
    }
    return 1;
}
Reply


Messages In This Thread
ShowPlayerMarker - by Gooday - 15.01.2012, 19:49
AW: ShowPlayerMarker - by Drebin - 15.01.2012, 22:25
Re: ShowPlayerMarker - by Scarred - 16.01.2012, 03:38

Forum Jump:


Users browsing this thread: 1 Guest(s)