Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new pLastDamager[MAX_PLAYERS] = {65535,...};
- public OnPlayerDisconnect(playerid, reason)
- {
- pLastDamager[playerid] = 65535;
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(killerid != pLastDamager[playerid])
- {
- Kick(playerid); //change to your's
- }
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
- {
- if(issuerid != 65535)
- {
- pLastDamager[playerid] = issuerid;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement