08.12.2012, 22:28
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) {
if(GetPlayerCameraMode(issuerid) != 53 || !IsPlayerConnected(issuerid)) return 1;
switch(weaponid) {
case 22..34: {
new pId = GetPlayerTargetPlayer(issuerid);
if(pId == 0xFFFF) {
new pStr[61], pName[24];
GetPlayerName(issuerid, pName, 24);
format(pStr, 61, "PTAC :: %s[ID %d] estб usando AimBot.", pName, issuerid);
SCM_Admin(-1, pStr);
}
}
}
return 1;
}
SCM_Admin(color, msg[]) {
for(new i = (MAX_PLAYERS - 1); i > -1; --i) if(IsPlayerAdmin(i)) SendClientMessage(i, color, msg);
return 1;
}