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 0MAX_PLAYERS++)
                {
                    if(
InPaintball[i] == 1)
                    {
                        
SetPlayerMarkerForPlayer(i,  playerid0xFF0000FF);
                        
SetPlayerMarkerForPlayer(playeridi0xFF0000FF);
                    }
                } 
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.0playerid1328.6179, -1557.989613.8794))
            {
                
SetPlayerPos(playerid, -973.79641077.22191345.0875);
                
SetPlayerInterior(playerid10), SetPlayerHealth(playerid100);
                
SendClientMessage(playeridCOLOR_WHITE"Pentru a vota o mapa sau o arma foloseste comanda {0976B0}/vote.");
                
pPlayers ++, PlayerKills[playerid] = 0InPaintball[playerid] = 1pVoted 1VotedMap[playerid] = 0VotedGun[playerid] = 0;
                if(
pRound == 1)
                {
                    if(
pGun[1] == 1) { GivePlayerWeapon(playerid24500); }
                    if(
pGun[2] == 1) { GivePlayerWeapon(playerid25500); }
                    if(
pGun[3] == 1) { GivePlayerWeapon(playerid31500); }
                    if(
pGun[4] == 1) { GivePlayerWeapon(playerid27500); }
                    if(
pGun[5] == 1) { GivePlayerWeapon(playerid4500); }
                    if(
pGun[6] == 1) { GivePlayerWeapon(playerid5500); }
                }
                
StartPaintball();
            }
        }
        return 
1;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)