04.08.2012, 00:42
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new string[256], pName[MAX_PLAYER_NAME];
if(GetPlayerWeapon(playerid) == 33)
{
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string),"%s have been kicked by The Quake Industries Shotgun for AFK", pName);
SendClientMessageToAll(-1, string);
Kick(damagedid);
}
return 1;
}