Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(killerid == INVALID_PLAYER_ID)
- {
- foreach(new i : Player)
- {
- SendClientMessageToAll(-1, "Foreach loop ...");
- for(new j = 0; j < 6; j++)
- {
- SendClientMessageToAll(-1, "For every player's bomb loop... Player In range of the bomb ?");
- if(!IsPlayerInRangeOfPoint(playerid, 10.0, pInfo[i][C4X][j], pInfo[i][C4Y][j], pInfo[i][C4Z][j]) continue;
- SendClientMessageToAll(-1, "Player in range checking reason of the death...");
- new string[120];
- format(string, sizeof(string), "i = %i | j = %i |", i, j);
- if(reason == 51 || reason == 53)
- {
- format(string, sizeof(string), "[YES-51/53] Killer: %s (%d) | Killee: %s (%d) | Reason: %d",GetName(killerid),killerid,GetName(playerid),playerid,reason);
- SendClientMessageToAll(-1, string);
- killerid = i;
- }
- else
- {
- format(string, sizeof(string), "[NO-51/53] Killer: %s (%d) | Killee: %s (%d) | Reason: %d",GetName(killerid),killerid,GetName(playerid),playerid,reason);
- SendClientMessageToAll(-1, string);
- SendDeathMessage(i, playerid, 51);
- return 1;
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement