28.08.2013, 15:31
Fala galera to com um anti cheat q manda msg qnd alguem usa um hack, mas ele fica mandando a msg muitas e muitas vezes eu queria que manda-se sу uma vez, tem como? N da pra jogar se o cara fizer arma ou teleport manda 200x a msm msg!
// Anti Cheat
// Anti Cheat
Quote:
public OnPlayerHacking(playerid, hackid) { new pStr[128], Name[24]; GetPlayerName(playerid, Name, 24); switch(hackid) { case PLAYER_BOT_LEVEL3: { format(pStr, 128, "Anti Cheat: Bot3!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_BOT_LEVEL2: { format(pStr, 128, "Anti Cheat: Bot2!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_BOT_LEVEL1: { format(pStr, 128, "Anti Cheat: Bot1!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_DEATHFLOOD_LEVEL3: { format(pStr, 128, "Anti Cheat: DeathFlood3!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_DEATHFLOOD_LEVEL2: { format(pStr, 128, "Anti Cheat: DeathFlood2!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_DEATHFLOOD_LEVEL1: { format(pStr, 128, "Anti Cheat: DeathFlood1!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_SURF_VEHICLE: { format(pStr, 128, "Anti Cheat: Surf Vehicle!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_CAR_TELEPORT: { format(pStr, 128, "Anti Cheat: Car Teleport!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_STATE_HACK: { format(pStr, 128, "Anti Cheat: State Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_NORELOAD_HACK: { format(pStr, 128, "Anti Cheat: No Reload!! Name: %s", Name); SendClientMessageToAll(-1, pStr); ResetPlayerWeapons(playerid); } case PLAYER_WEAPON_HACK: { format(pStr, 128, "Anti Cheat: Weapon Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); ResetPlayerWeapons(playerid); } case PLAYER_AMMO_HACK: { format(pStr, 128, "Anti Cheat: Ammo Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_FREEZE_HACK: { format(pStr, 128, "Anti Cheat: Freeze Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_SCORE_HACK: { format(pStr, 128, "Anti Cheat: Score Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } //case PLAYER_MONEY_HACK: { //format(pStr, 128, "Anti Cheat: Money Hack!! Name: %s", Name); //SendClientMessageToAll(-1, pStr); /*}*/ case PLAYER_HEALTH_HACK: { format(pStr, 128, "Anti Cheat: Health Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_ARMOUR_HACK: { format(pStr, 128, "Anti Cheat: Armour Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_PUBLISH_TEXT: { format(pStr, 128, "Anti Cheat: Publish Text!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_OFFEND_TEXT: { format(pStr, 128, "Anti Cheat: Offend Text!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_FLOOD_TEXT: { format(pStr, 128, "Anti Cheat: Flood Text!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_TELEPORT_HACK: { format(pStr, 128, "Anti Cheat: Teleport Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_AIRBREAK_HACK: { format(pStr, 128, "Anti Cheat: Air Break!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_BUGGER_HACK: { format(pStr, 128, "Anti Cheat: Bugger!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_HIGH_PING: { format(pStr, 128, "Anti Cheat: High Ping!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_SPIDER_HACK: { format(pStr, 128, "Anti Cheat: Spider Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_CPRACE_HACK: { format(pStr, 128, "Anti Cheat: CP Race!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_SPEED_HACK: { format(pStr, 128, "Anti Cheat: Speed Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_PSPEED_HACK: { format(pStr, 128, "Anti Cheat: Player Speed Hack!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } case PLAYER_FLY_HACK: { format(pStr, 128, "Anti Cheat: Fly!! Name: %s", Name); SendClientMessageToAll(-1, pStr); } } return 1; } |