I need some help about my Backup From my server the Marker that shouldt showup at the map doesnt show up
PHP код:
if(strcmp(cmd,"/backup",true)==0 || strcmp(cmd,"/bk",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid) || IsAFreecop(playerid))
{
if(PlayerInfo[playerid][pDBanned] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "** You are banned From Cop Duty!");
return 1;
}
if(PlayerInfo[playerid][pDuty] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "** You aren't on duty Duty!");
return 1;
}
if (PlayerInfo[playerid][pRequestingBackup] != 1)
{
format(string, sizeof(string), "ALL UNITS: %s is requesting immediate assistance, they have been marked on the map (red).", sendername);
PlayerInfo[playerid][pRequestingBackup] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i) || IsAFreecop(i))
{
if(PlayerInfo[i][pDuty] == 1)
{
SetPlayerMarkerForPlayer(i, playerid, COLOR_YELLOW);
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
}
}
SendClientMessage(playerid, TEAM_BLUE_COLOR, "Type /bkc to clear your backup request.");
SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /backup",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You already have an active backup request!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
}
}
return 1;
}
I mean It just doenst Shuwup Ther shouldt be A Icon showed into the map but it doesnt