Код:
if(Mobile[playerid] == 913)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Sorry i dont understand?");
return 0;
}
if ((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no")))
{
new turner[MAX_PLAYER_NAME];
new wanted[128];
GetPlayerName(playerid, turner, sizeof(turner));
SendClientMessage(playerid, COLOR_DBLUE, "Police HQ: We have alerted all units in the area.");
SendClientMessage(playerid, COLOR_DBLUE, "Thank you for reporting this crime");
format(wanted, sizeof(wanted), "HQ: All Units APB: Reporter: %s",turner);
SendCopMessage(COLOR_DBLUE, wanted);
format(wanted, sizeof(wanted), "HQ: Crime: %s, Suspect: Unknown",PlayerCrime[playerid][pAccusing]);
SendCopMessage(COLOR_DBLUE, wanted);
SendClientMessage(playerid, COLOR_GRAD2, " They Hung Up...");
Mobile[playerid] = 255;
return 0;
}
i want to add a checkpoint in that code but don't know how i want to make it so when someone calls police thorough 911 it places a checkpoint for cops to see were the call was placed thnx
E.G.
Ok i named the checkpoint police now how would go by defining it just #define Police or something else?