SetPlayerMarkerForPlayer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerMarkerForPlayer (
/showthread.php?tid=127910)
SetPlayerMarkerForPlayer -
silvan - 15.02.2010
i made the " ShowPlayerMarkers(1) and even i tried it with 0 and 2 .....
the problem is that i want to make a command of " backup " for police... RP ... but somehow the marker on the map don't wanna show up... but the other code works fine such as SendMessageToPolice.
Код:
if(strcmp(cmd, "/bkp", true) == 0)
{
if(PlayerInfo[playerid][policerank] == 0)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"You are not a cop!");
return 1;
}
if(PlayerInfo[playerid][bkp] == 0)
{
format(string,sizeof(string),"(PD Radio) %s %s is requesting backup.!",PoliceRank[PlayerInfo[playerid][policerank]-1][0],PlayerInfo[playerid][name]);
SendMessageToPolice(COLOR_LIGHTBLUE,string);
PlayerInfo[playerid][bkp] = 1;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][policerank] != 0)
{
SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
}
}
return 1;
}
if(PlayerInfo[playerid][bkp] == 1)
{
format(string,sizeof(string),"(PD Radio) %s %s had cancelled his backup Request.",PoliceRank[PlayerInfo[playerid][policerank]-1][0],PlayerInfo[playerid][name]);
SendMessageToPolice(COLOR_LIGHTBLUE,string);
PlayerInfo[playerid][bkp] = 0;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][policerank] != 0)
{
SetPlayerMarkerForPlayer(i,playerid,0xFFFFFF00);
}
}
SetPlayerColor(playerid,COLOR_BLUE);
return 1;
}
}
Everything works fine.... only the setplayermarkerforplayer and according to the wiki it is fine.... but it don't work. also when i tried to make it as show all... it does appear the red color, but i don't want to show the other markers... i dont' need them