06.04.2012, 23:04
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(GetPlayerCameraMode(issuerid) != 53 || !IsPlayerConnected(issuerid)) return;
switch(weaponid)
{
case 24, 25: // coloque a ID das armas que queira proibir...
{
new targetplayer = GetPlayerTargetPlayer(issuerid);
if(targetplayer == INVALID_PLAYER_ID)
{
Ban(issuerid);
}
}
}
}