for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(InPaintball[i] == 1)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
SetPlayerMarkerForPlayer(playerid, i, 0xFF0000FF);
}
}
How you get "playerid" in this function?
Have you get ShowPlayerMarkers in OnGameModeInit()? |
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;
}