11.12.2009, 02:25
Hi to all i have problem, when some player call pd on 911, all members in pd after that call get message
CALLER:
CRIME:
REPORT:
BAL BAL
but when players call paramedic and call is end...team didint get any message lice pd
what is problem?
here is code for pd call
I MUST SAY
this NO you see in line below, is if you dont know name and just say NO to dispathcer
and here is for paramedic call...
i realy dont know what is problem but its BIG PROBLEM, and i dont know how to fix this :S
my players always use this call for report something....like i say he can report crime and that work, but incident can report to paramedic there is no message to medic team ALL UNITS: CALER BAL BAL...
how to fix this
tnx a lot
CALLER:
CRIME:
REPORT:
BAL BAL
but when players call paramedic and call is end...team didint get any message lice pd
what is problem?
here is code for pd call
Код:
if(Mobile[playerid] == 913) { if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY SLUZBA: Izvinite ne razumem?"); 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, "DISPATCHER: WE REPORT TO ALL UNITS."); SendClientMessage(playerid, COLOR_DBLUE, "TNX FOR REPORT CRIME"); format(wanted, sizeof(wanted), "DISPATCHER: ALL UNITS: REPORT: %s",turner); SendFamilyMessage(1, COLOR_DBLUE, wanted); format(wanted, sizeof(wanted), "DISPATCHER: CRIME: %s, SUSPECT: Unknown",PlayerCrime[playerid][pAccusing]); SendFamilyMessage(1, COLOR_DBLUE, wanted); SendClientMessage(playerid, COLOR_GRAD2, " They Hung Up..."); Mobile[playerid] = 255; return 0; }
this NO you see in line below, is if you dont know name and just say NO to dispathcer
Код:
if ((strcmp("no", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("no"))) {
Код:
if(Mobile[playerid] != 255) { new idx; tmp = strtok(text, idx); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s Says (cellphone): %s", sendername, text); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); //printf("callers line %d called %d caller %d",Mobile[Mobile[playerid]],Mobile[playerid],playerid); if(Mobile[playerid] == 914) { if(!strlen(tmp)) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "DISPATHCER: sorry i dont understand?"); return 0; } new turner[MAX_PLAYER_NAME]; new wanted[128]; GetPlayerName(playerid, turner, sizeof(turner)); SendClientMessage(playerid, TEAM_CYAN_COLOR, "DISPATHCER: we report all free units"); SendClientMessage(playerid, TEAM_CYAN_COLOR, "tnx for report); format(wanted, sizeof(wanted), "DISPATCHER: ALL FREE UNITS: CALLER: %s",turner); SendTeamBeepMessage(1, TEAM_CYAN_COLOR, wanted); format(wanted, sizeof(wanted), ": INCIDENT: %s",text); SendTeamMessage(1, TEAM_CYAN_COLOR, wanted); SendClientMessage(playerid, COLOR_GRAD2, " Thay hang up"); Mobile[playerid] = 255; return 0; }
my players always use this call for report something....like i say he can report crime and that work, but incident can report to paramedic there is no message to medic team ALL UNITS: CALER BAL BAL...
how to fix this
tnx a lot