ShowPlayerMarker
#1

How i can make a command:

/showme ----> show all the skins n*50 a red marker in the map and after 5 minutes remove automatically the marker? +REP!
Reply
#2

Highlight every player with skin ID 50 with a red marker for 5 mins?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)