27.10.2012, 21:41
Tenta..
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(GetPlayerCameraMode(issuerid) != 53 || !IsPlayerConnected(issuerid)) return 1;
switch(weaponid)
{
case 22..34:
{
if(GetPlayerTargetPlayer(issuerid) == INVALID_PLAYER_ID)
{
new string[61], Nome[24];
GetPlayerName(issuerid, Nome, 24);
format(string, sizeof(string), "admcmd: [%d]%s estб usando AimBot.", issuerid, Nome);
for(new i, PT = MAX_PLAYERS; i < PT; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i, -1, string);
}
}
}
return 1;
}