16.01.2013, 15:32
Quote:
Hello everybody.
I post here because I've some problems with my 911 calls. When someone call the police, the police get the message, but they don't have the checkpoint, here is the code : pawn Код:
And I have the same problem with the medic code, it says that there is no medic online too, even if i'm on duty. pawn Код:
Can you please help me with this marker thing please ? |
PHP код:
public cops_callCopsUrgence(playerid, raison[])
{
if(cop_nbrCops <= 0)return SendClientMessage(playerid, COLOR_TEL, "[911: Police] No cops are available !");
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(proxy_msg, sizeof(proxy_msg), "%s call the police.", playername);
proxy_sendMsg(playerid, proxy_msg);
SendClientMessage(playerid,COLOR_TEL,"[911: Police] Don't move !");
SetTimerEx("resetCallUrgence",120000,false,"d",playerid);
PlayerInfo[playerid][pUseSpecialColor] = 1;
print("Lancement Boucle 179");
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pMember]== FACT_COPS_LS && OnDuty[i])
{
SetPlayerMarkerForPlayer(i, playerid, COLOR_ALERT);
new stringappel[MAX_STRING_MSG];
SendClientMessage(i ,COLOR_ALERT,"===========================================================================");
SendClientMessage(i, COLOR_BLUE, "DISPATCH AUTOMATIQUE DU CENTRE DE TRAITEMENT DE L'ALERTE");
SendClientMessage(i, COLOR_BLUE, "Nature : Appel d'urgence 'Police secours'.");
format(stringappel,sizeof(stringappel),"From : %s \n Reason : %s",playername,raison);
SendClientMessage(i, COLOR_ALERT,stringappel);
SendClientMessage(i, COLOR_BLUE, "");
SendClientMessage(i, COLOR_BLUE, "");
SendClientMessage(i, COLOR_ALERT, "[C.T.A.] Action prioritaire : Envoie d'une PV sur les lieux.");
SendClientMessage(i, COLOR_ALERT, "[C.T.A.] Action demandйe : Attente des ordres des supйrieurs.");
SendClientMessage(i, COLOR_ALERT, "[C.T.A.] Que les unitйs а proximitй se rapprochent de la zone, en attente.");
SendClientMessage(i ,COLOR_ALERT,"===========================================================================");
SendClientMessage(i, COLOR_SERVER, "[INFO] A checkpoint has been set on your GPS, go !");
}
}
print("Fin Boucle 179");
return 1;
}
PHP код:
for(new i=MIN_PLAYERID; i<MAX_PLAYERS_CURRENT+1; i++)
and i don't know which number is behind this two values