Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #define red 0xFF0000
- #define creator "Max_Coldheart"
- #define version "1.0"
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" ColdBuster by Max_Coldheart");
- print(" version 1.0");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerSpawn(playerid)
- {
- SetPlayerArmour(playerid, 99);
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN || GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 18 || GetPlayerWeapon(playerid) == WEAPON_SATCHEL || GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER)
- {
- new sendername[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 128, "%s has been banned by ColdBuster. Reason: Weapon Hack", sendername);
- SendClientMessageToAll(red, string);
- TogglePlayerControllable(playerid, 0);
- BanEx(playerid, "Weapon Hack");
- return 1;
- }
- if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
- {
- new sendername[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 256, "%s has been banned by ColdBuster. Reason: Jetpack hack", sendername);
- SendClientMessageToAll(red, string);
- BanEx(playerid, "Jetpack Hack");
- return 1;
- }
- new Float:health;
- if(GetPlayerHealth(playerid, health) > 999999)
- {
- new sendername[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 128, "%s has been banned by ColdBuster. reason: Health Hack", sendername);
- SendClientMessageToAll(red, string);
- TogglePlayerControllable(playerid, 0);
- BanEx(playerid, "Health Hack");
- return 1;
- }
- new Float:armor;
- if(GetPlayerArmour(playerid, armor) == 100)
- {
- new sendername[MAX_PLAYER_NAME];
- new string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, 128, "%s has been banned by ColdBuster. reason: Armor Hack", sendername);
- SendClientMessageToAll(red, string);
- TogglePlayerControllable(playerid, 0);
- BanEx(playerid, "Armor Hack");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement