Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6a7
- > #include <smac_aimbot>
- 23,25c24,26
- < #define AIM_ANGLE_CHANGE 45.0 // Max angle change that a player should snap
- < #define AIM_BAN_MIN 4 // Minimum number of detections before an auto-ban is allowed
- < #define AIM_MIN_DISTANCE 200.0 // Minimum distance acceptable for a detection.
- ---
- > new Float:AIM_ANGLE_CHANGE = 45.0; // Max angle change that a player should snap
- > new AIM_BAN_MIN = 4; // Minimum number of detections before an auto-ban is allowed
- > new Float:AIM_MIN_DISTANCE = 200.0; // Minimum distance acceptable for a detection.
- 37a39,47
- > public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
- > {
- > API_Init();
- > RegPluginLibrary("smac_aimbot");
- >
- > return APLRes_Success;
- > }
- >
- > /* Plugin Functions */
- 41c51
- <
- ---
- >
- 43c53
- < g_hCvarAimbotBan = SMAC_CreateConVar("smac_aimbot_ban", "0", "Number of aimbot detections before a player is banned. Minimum allowed is 4. (0 = Never ban)", FCVAR_PLUGIN, true, 0.0);
- ---
- > g_hCvarAimbotBan = SMAC_CreateConVar("smac_aimbot_ban", "0", "Number of aimbot detections before a player is banned.\nMinimum default value allowed is 4. (0 = Never ban)\nSome plugins can change the minimum value.", FCVAR_PLUGIN, true, 0.0);
- 46c56
- <
- ---
- >
- 52c62
- <
- ---
- >
- 55c65
- <
- ---
- >
- 97c107
- <
- ---
- >
- 101c111
- <
- ---
- >
- 110c120
- <
- ---
- >
- 141c151
- <
- ---
- >
- 165c175
- <
- ---
- >
- 177c187
- <
- ---
- >
- 180c190
- <
- ---
- >
- 183c193
- <
- ---
- >
- 189c199
- <
- ---
- >
- 203c213
- <
- ---
- >
- 208c218
- <
- ---
- >
- 211c221
- <
- ---
- >
- 215c225
- <
- ---
- >
- 229c239
- <
- ---
- >
- 234c244
- <
- ---
- >
- 237c247
- <
- ---
- >
- 241c251
- <
- ---
- >
- 253c263
- <
- ---
- >
- 258c268
- <
- ---
- >
- 266c276
- <
- ---
- >
- 271c281
- <
- ---
- >
- 283c293
- <
- ---
- >
- 292c302
- <
- ---
- >
- 299c309
- <
- ---
- >
- 304c314
- <
- ---
- >
- 312c322
- <
- ---
- >
- 315c325
- <
- ---
- >
- 327c337
- <
- ---
- >
- 338c348
- <
- ---
- >
- 357c367
- <
- ---
- >
- 360c370
- <
- ---
- >
- 365c375
- <
- ---
- >
- 370c380
- <
- ---
- >
- 376c386
- <
- ---
- >
- 384c394
- <
- ---
- >
- 392c402
- <
- ---
- >
- 396a407,458
- > }
- >
- > // ====================================
- > // NATIVES
- > // ====================================
- > API_Init()
- > {
- > CreateNative("SMAC_SetAimAngleChange", Native_SetAimAngleChange);
- > CreateNative("SMAC_SetBanMin", Native_SetBanMin);
- > CreateNative("SMAC_SetAimMinDistance", Native_SetAimMinDistance);
- >
- > CreateNative("SMAC_GetAimAngleChange", Native_GetAimAngleChange);
- > CreateNative("SMAC_GetBanMin", Native_GetBanMin);
- > CreateNative("SMAC_GetAimMinDistance", Native_GetAimMinDistance);
- > }
- >
- > public Native_GetAimAngleChange(Handle:plugin, numParams)
- > {
- > return _:AIM_ANGLE_CHANGE;
- > }
- >
- > public Native_GetBanMin(Handle:plugin, numParams)
- > {
- > return AIM_BAN_MIN;
- > }
- >
- > public Native_GetAimMinDistance(Handle:plugin, numParams)
- > {
- > return _:AIM_MIN_DISTANCE;
- > }
- >
- > public Native_SetAimAngleChange(Handle:plugin, numParams)
- > {
- > AIM_ANGLE_CHANGE = Float:GetNativeCell(1);
- > }
- >
- > public Native_SetBanMin(Handle:plugin, numParams)
- > {
- > AIM_BAN_MIN = GetNativeCell(1);
- > if(AIM_BAN_MIN == 0)
- > {
- > g_iAimbotBan=0;
- > }
- > else if(AIM_BAN_MIN > 0 && g_iAimbotBan < AIM_BAN_MIN)
- > {
- > g_iAimbotBan=AIM_BAN_MIN;
- > }
- > }
- >
- > public Native_SetAimMinDistance(Handle:plugin, numParams)
- > {
- > AIM_MIN_DISTANCE = Float:GetNativeCell(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement