25.04.2012, 17:28
Tenta ai manolo das dorgas:
pawn Код:
#include <a_samp>
#include <foreach>
new PlayerShotPlayer[MAX_PLAYERS][MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
if(!PlayerShotPlayer[killerid][playerid])
{
Ban(playerid);
}
}
foreach(Player,i)
{
PlayerShotPlayer[i][playerid] = 0;
}
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
PlayerShotPlayer[issuerid][playerid] = 1;
return 0;
}