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)
+--- Thread: SetPlayerMarkerForPlayer (
/showthread.php?tid=287899)
SetPlayerMarkerForPlayer -
Sreadon - 05.10.2011
Hi, I've a problem with this command, the marker doesn't appear players... I've try to change a lot of things, always same result, marker doesn't appear.
pawn Код:
if(strcmp(cmd,"/bkf",true)==0 || strcmp(cmd,"/rhelp",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRequestingBackup] != 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
UnderscoreToSpace( sendername );
format(string, sizeof(string), "Urgence : %s a besoin D'aide tout de suite ! (Point Rouge).", sendername);
PlayerInfo[playerid][pRequestingBackup] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1||PlayerInfo[i][pLeader] == 1)
{
SetPlayerMarkerForPlayer(i, playerid, 0x999999AA);
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
}
SendClientMessage(playerid, TEAM_BLUE_COLOR, "Tappez /bkc quand vous n'avez plus besoin d'aide.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vous avez dйjа fait une demande d'aide!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vous n'кtes pas dans une faction");
}
}
return 1;
}
Thanks.
Re: SetPlayerMarkerForPlayer -
Pharrel - 05.10.2011
check if have this on your ongamemodeinit
Re : SetPlayerMarkerForPlayer -
Sreadon - 05.10.2011
Ah, you have right, it's on 0, so it's disable, but, I've I active it, all markers will appear no?
Re: SetPlayerMarkerForPlayer -
Pharrel - 05.10.2011
if you set the player colors 0x??????00 no (?????? can be any number)
Re : SetPlayerMarkerForPlayer -
Sreadon - 05.10.2011
I'll try it, but I think I've already try.
Re: SetPlayerMarkerForPlayer -
Pharrel - 05.10.2011
put onplayerconnect and onplayerspawn
pawn Код:
SetPlayerColor(playerid, 0xFFFFFF00);