Player not receiving prompt
#1

When a player killed by another player is killed by another normal player they should get a prompt to call 112 for the police but it's not working. Could someone take a look at this piece of code and give me some suggestions on what could be the problem ?

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
    {
        pInfo[killerid][pKills]++;
        if(!(IsACop(killerid) || IsAMember(killerid) || pInfo[playerid][pJailed] > 0 || pInfo[playerid][pAJailed] > 0 || Iter_Contains(Paintp, playerid) || pInfo[killerid][pMember] == 8 || vwp[playerid] == pInfo[playerid][pMember] || pInfo[playerid][pDuel] < INVALID_PLAYER_ID || (Event_Pos[0] == 0.0 && IsPlayerInRangeOfPoint(playerid, 140.0, Event_Pos[0], Event_Pos[1], Event_Pos[2]))))
        {
            pInfo[playerid][aVar][64] = killerid, pInfo[playerid][aSpam][7] = gtm+60;
            format(stmsg[playerid], 110, "Ai fost omorat de %s, ai 60 de secunde la dispozitie sa-l reclami folosind /call 112.", GetName(killerid));
            SendClientMessage(playerid, 0x60BF61FF, stmsg[playerid]);
        }
        return 1;
}
Reply


Messages In This Thread
Player not receiving prompt - by Maheegan - 07.11.2018, 02:31
Re: Player not receiving prompt - by cSharp - 07.11.2018, 04:34
Re: Player not receiving prompt - by KinderClans - 07.11.2018, 08:27
Re: Player not receiving prompt - by Ermanhaut - 07.11.2018, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)