/hangup doesn't work on 911 calls
#3

I am pretty sure this will work better.
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(ison911[playerid] == 1)
    {
        foreach(Player, i)
        {
            format(string2, sizeof(string2), "[911 CALL]%d: %s", PlayerInfo[playerid][PhoneNumber], text);
            if(PlayerInfo[i][Fmember] == 1 || PlayerInfo[i][Fmember] == 2 || PlayerInfo[i][Fmember] == 3 || PlayerInfo[i][Fmember] == 4) SendClientMessage(i, COLOR_PINK, string2);
            format(string, sizeof(string), "(Phone)%s Says: %s", name, text);
        }
        ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
    }
    new name[24], string[128], string2[128];
    GetPlayerName(playerid, name, 24);
    format(string, sizeof(string), "%s Says: %s", name, text);
    ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
}
This just make it return the notmal text if you are not in a call.
Reply


Messages In This Thread
/hangup doesn't work on 911 calls - by milanosie - 10.02.2012, 13:09
Re: /hangup doesn't work on 911 calls - by milanosie - 10.02.2012, 13:12
Re : /hangup doesn't work on 911 calls - by ricardo178 - 10.02.2012, 13:14
Re: Re : /hangup doesn't work on 911 calls - by milanosie - 10.02.2012, 13:21
Re : /hangup doesn't work on 911 calls - by ricardo178 - 10.02.2012, 15:02
Re: /hangup doesn't work on 911 calls - by milanosie - 10.02.2012, 15:32
Re: /hangup doesn't work on 911 calls - by Rob_Maate - 10.02.2012, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)