Help Marker
#1

How can I do so in as it is in paintball player to have checkpoints on every player who is in the paint (marker)
I tried so, but it does not work:

PHP код:
                for(new i = 0; i < MAX_PLAYERS; i ++)
                {
                    if(
InPaintball[i] == 1)
                    {
                        
SetPlayerMarkerForPlayer(i,  playerid, 0xFF0000FF);
                        
SetPlayerMarkerForPlayer(playerid, i, 0xFF0000FF);
                    }
                } 
Reply
#2

up
help!
Reply
#3

How you get "playerid" in this function?
Have you get ShowPlayerMarkers in OnGameModeInit()?
Reply
#4

Quote:
Originally Posted by Anuris
Посмотреть сообщение
How you get "playerid" in this function?
Have you get ShowPlayerMarkers in OnGameModeInit()?
No, I RPG server.
I want to be visible marker in paintball and just for that.

PHP код:
    if(strcmp(cmd, "/paintball", true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerToPoint(5.0, playerid, 1328.6179, -1557.9896, 13.8794))
            {
                
SetPlayerPos(playerid, -973.7964, 1077.2219, 1345.0875);
                
SetPlayerInterior(playerid, 10), SetPlayerHealth(playerid, 100);
                
SendClientMessage(playerid, COLOR_WHITE, "Pentru a vota o mapa sau o arma foloseste comanda {0976B0}/vote.");
                
pPlayers ++, PlayerKills[playerid] = 0, InPaintball[playerid] = 1, pVoted = 1, VotedMap[playerid] = 0, VotedGun[playerid] = 0;
                if(
pRound == 1)
                {
                    if(
pGun[1] == 1) { GivePlayerWeapon(playerid, 24, 500); }
                    if(
pGun[2] == 1) { GivePlayerWeapon(playerid, 25, 500); }
                    if(
pGun[3] == 1) { GivePlayerWeapon(playerid, 31, 500); }
                    if(
pGun[4] == 1) { GivePlayerWeapon(playerid, 27, 500); }
                    if(
pGun[5] == 1) { GivePlayerWeapon(playerid, 4, 500); }
                    if(
pGun[6] == 1) { GivePlayerWeapon(playerid, 5, 500); }
                }
                
StartPaintball();
            }
        }
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)