05.10.2011, 14:29
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.
Thanks.
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;
}