SA-MP Forums Archive
Help Marker - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Marker (/showthread.php?tid=553594)



Help Marker - Edw - 30.12.2014

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);
                    }
                } 



Re: Help Marker - Edw - 30.12.2014

up
help!


Re: Help Marker - Anuris - 30.12.2014

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


Re: Help Marker - Edw - 30.12.2014

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;
    }