Sorry for the question, but
#3

Wow, lol ok.
pawn Код:
public OnPlayerText(playerid, text[])
{
   
    new pname[24];
    new string[256];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s says: %s", pname, text);
    if(PlayerData[OnCall][playerid] == 911) {
    format(string, sizeof(string), "%s says(Phone): %s", pname, text);
    ProxDetector(20.0,playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    if(EStage[playerid] == 1) {
    if(strcmp("police", text, true)) {
    SendClientMessage(playerid, White, "Please specify your location.");
    EStage[playerid] = 2;
    return 0;
    }
    if(strcmp("paramedic", text, true)) {
    SendClientMessage(playerid, White, "Please specify your location.");
    EStage[playerid] = 4;
    return 0;
    }
    if(strcmp("both", text, true)) {
    SendClientMessage(playerid, White, "Please specify your location.");
    EStage[playerid] = 6;
    return 0;
    }
    else {
    SendClientMessage(playerid, White, "I'm sorry, I do not understand that.");
    return 0;
    }
    }
   
    if(EStage[playerid] == 6) {
    ELoc[playerid][0] = text[0];
    SendClientMessage(playerid, White, "Please explain your situation.");
    EStage[playerid] = 7;
    return 0;
    }
    if(EStage[playerid] == 8) {
    ESit[playerid][0] = text[0];
    SendClientMessage(playerid, White, "Ok, sit tight, they have been notified.");
    for(new i; i < MAX_PLAYERS; i ++) {
    if(PlayerData[RChannel][i] == 912 || PlayerData[RChannel][i] == 913) {
    SendClientMessage(playerid, White, "Auto Dispatch: We have an emergency call.");
    format(string, sizeof(string), "Location: %s", ELoc[playerid]);
    SendClientMessage(playerid, White, string);
    format(string, sizeof(string), "Situation: %s", ESit[playerid]);
    SendClientMessage(playerid, White, string);
    }
    }
    return 0;
    }

   
    if(EStage[playerid] == 4) {
    ELoc[playerid][0] = text[0];
    SendClientMessage(playerid, White, "Please explain your situation.");
    EStage[playerid] = 3;
    return 0;
    }
    if(EStage[playerid] == 5) {
    ESit[playerid][0] = text[0];
    SendClientMessage(playerid, White, "Ok, sit tight, Paramedics have been notified.");
    for(new i; i < MAX_PLAYERS; i ++) {
    if(PlayerData[RChannel][i] == 913) {
    SendClientMessage(playerid, White, "Auto Dispatch: We have an emergency call.");
    format(string, sizeof(string), "Location: %s", ELoc[playerid]);
    SendClientMessage(playerid, White, string);
    format(string, sizeof(string), "Situation: %s", ESit[playerid]);
    SendClientMessage(playerid, White, string);
    }
    }
    return 0;
    }


   
   
    if(EStage[playerid] == 2) {
    ELoc[playerid][0] = text[0];
    SendClientMessage(playerid, White, "Please explain your situation.");
    EStage[playerid] = 3;
    return 0;
    }
    if(EStage[playerid] == 3) {
    ESit[playerid][0] = text[0];
    SendClientMessage(playerid, White, "Ok, sit tight, Police have been notified.");
    for(new i; i < MAX_PLAYERS; i ++) {
    if(PlayerData[RChannel][i] == 912) {
    SendClientMessage(playerid, White, "Auto Dispatch: We have an emergency call.");
    format(string, sizeof(string), "Location: %s", ELoc[playerid]);
    SendClientMessage(playerid, White, string);
    format(string, sizeof(string), "Situation: %s", ESit[playerid]);
    SendClientMessage(playerid, White, string);
    }
    }
    }
    return 0;
    }


    if(PlayerData[OnCall][playerid] != -1 && PlayerData[PickedUp][PlayerData[OnCall][playerid]]) {
    SendClientMessage(PlayerData[OnCall][playerid], Yellow1, string);
    format(string, sizeof(string), "%s says(Phone): %s", pname, text);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    return 0;
    }
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    return 0;
}
Reply


Messages In This Thread
Sorry for the question, but - by zallomallo - 24.06.2009, 01:42
Re: Sorry for the question, but - by Grim_ - 24.06.2009, 01:43
Re: Sorry for the question, but - by zallomallo - 24.06.2009, 01:44
Re: Sorry for the question, but - by yom - 24.06.2009, 02:46
Re: Sorry for the question, but - by zallomallo - 24.06.2009, 02:49
Re: Sorry for the question, but - by abhinavdabral - 24.06.2009, 10:16
Re: Sorry for the question, but - by zallomallo - 24.06.2009, 15:43
Re: Sorry for the question, but - by abhinavdabral - 24.06.2009, 16:44
Re: Sorry for the question, but - by zallomallo - 24.06.2009, 17:26
Re: Sorry for the question, but - by abhinavdabral - 25.06.2009, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)