//************************************************************************************ #include <a_samp>#define MAX_DB 3#define MAX_WARNING 3new Warns[MAX_PLAYERS];forward AntiDrive(playerid , killerid);//==========SZINEK==========//#define COLOR_GREEN 0x33AA33AA#define COLOR_YELLOW 0xFFFF00AA#define COLOR_RED 0xFF0000AA#define COLOR_GREEN 0x33AA33AA//*************************************public AntiDrive( playerid , killerid ){new wsrt[128], wsrt2[256];new PlayerName[16];GetPlayerName(playerid, PlayerName, sizeof(PlayerName));if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER){ Warns[playerid] ++; SendClientMessage(killerid, COLOR_RED, \"Figyelmeztetés!Ne ölj Db vel, külömben kickelve leszel!\");if(Warns[killerid] >= 3){ format(wsrt, sizeof(wsrt), \"*Anti-Drive_By_Kill-Bot: %s kickelve lett a szerver által. Indok: - Drive_By_Kill/Db [%d]\", PlayerName, MAX_DB); SendClientMessageToAll(COLOR_RED, wsrt); format(wsrt2, sizeof(wsrt2), \"Kickelve lettél a szerver által. Indok - Drive_By_Kill/Db [%d]\", MAX_DB); SendClientMessage(killerid, COLOR_GREEN, wsrt2); Kick(killerid);}}return 1;}public OnPlayerDeath(playerid, killerid, reason){ AntiDrive(playerid, killerid); return 1;}