07.11.2018, 02:31
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; }