[Help] With Anti Block Heli

Coding Help/Re-API Supported
Post Reply
Claudio-vip
Member
Member
Posts: 2
Joined: 1 Month Ago
Has thanked: 0
Been thanked: 0
Contact:

[Help] With Anti Block Heli

#1

Post by Claudio-vip » 1 Month Ago

Hello guys.I found the anti block plugin viewtopic.php?f=15&t=1929 in this forum but when i want to compile the code:
  1. #include <zombie_escape>
  2.  
  3. new const szEntities[][] =
  4. {
  5.     "func_train",
  6.     "func_vehicle",
  7.     "func_tracktrain",
  8.     "func_door"
  9. }
  10.  
  11. new g_iPulsating = 0, Float:g_flLastBlock[33]
  12.  
  13. // Cvars
  14. new g_pCvarBlockTime
  15.  
  16. public plugin_init()
  17. {
  18.     register_plugin("No Block", "1.0", "Raheem")
  19.    
  20.     // Cvars
  21.     g_pCvarBlockTime = register_cvar("ze_block_time", "1.5")
  22.  
  23.     for (new i = 0; i <= charsmax(szEntities); i++)
  24.     {
  25.         RegisterHam(Ham_Blocked, szEntities[i], "Fw_Blocked_Post", 1)
  26.     }
  27. }
  28.  
  29. public Fw_Blocked_Post(iEnt, id)
  30. {
  31.     new Float:flRefTime = get_gametime()
  32.    
  33.     if (is_user_alive(id) && pev_valid(iEnt))
  34.     {
  35.         if(g_flLastBlock[id] > flRefTime)
  36.             return
  37.        
  38.         g_flLastBlock[id] = flRefTime + get_pcvar_float(g_pCvarBlockTime)
  39.            
  40.         ExecuteHamB(Ham_TakeDamage, id, iEnt, iEnt, 10.0, DMG_GENERIC)
  41.         if (ze_is_user_zombie(id))
  42.         {
  43.             set_entvar(id, var_health, get_entvar(id, var_health) - 2000.0)
  44.         }
  45.         client_print(id, print_center, "Stop BLOCK!!!")
  46.        
  47.         switch (g_iPulsating)
  48.         {
  49.             case 0:
  50.             {
  51.                 Set_Rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 40)
  52.                 g_iPulsating = 1
  53.             }
  54.             case 1:
  55.             {
  56.                 Set_Rendering(id)
  57.                 g_iPulsating = 0
  58.             }
  59.         }
  60.     }
  61. }
It doesn't work and appear this error :

Code: Select all

//// anti_block_all.sma
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(18) : error 017: undefined symbol "register_plugin"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(21) : error 017: undefined symbol "register_cvar"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(23) : error 017: undefined symbol "charsmax"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 017: undefined symbol "RegisterHam"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 001: expected token: ";", but found ")"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 029: invalid expression, assumed zero
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 7 Errors.
// Could not locate output file compiled\anti_block_all.amx (compile failed).
//
// Compilation Time: 0,16 sec
// ----------------------------------------
Please I need help.I'm not good at plugins or scripting

BandiT
Member
Member
Romania
Posts: 18
Joined: 3 Months Ago
Has thanked: 0
Been thanked: 0
Contact:

#2

Post by BandiT » 1 Month Ago

You have here everething you need : viewtopic.php?f=15&t=45
Just download that plugin semi clip, put the plugin in plugins and after just open server.cfg and then add this command sv_force_ent_intersection 1, but you will found in that topic

Or you can download another semiclip and put this comand in your server.cfg sv_force_ent_intersection 1
Or update your compiler, you cand download from here the latest version viewtopic.php?f=6&t=221 and try with this one to compile

Claudio-vip
Member
Member
Posts: 2
Joined: 1 Month Ago
Has thanked: 0
Been thanked: 0
Contact:

#3

Post by Claudio-vip » 1 Month Ago

This is not semi clip plugin.This is Anti block for helicopters vechicles etc.But when i want to compiile appears this errors

Code: Select all

// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(18) : error 017: undefined symbol "register_plugin"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(21) : error 017: undefined symbol "register_cvar"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(23) : error 017: undefined symbol "charsmax"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 017: undefined symbol "RegisterHam"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 001: expected token: ";", but found ")"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 029: invalid expression, assumed zero
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : fatal error 107: too many error messages on one line
need someone fix this errors please

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 626
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 49 times
Age: 20
Contact:

#4

Post by Mohamed Alaa » 1 Month Ago

Claudio-vip wrote:
1 Month Ago
This is not semi clip plugin.This is Anti block for helicopters vechicles etc.But when i want to compiile appears this errors

Code: Select all

// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(18) : error 017: undefined symbol "register_plugin"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(21) : error 017: undefined symbol "register_cvar"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(23) : error 017: undefined symbol "charsmax"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 017: undefined symbol "RegisterHam"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : warning 215: expression has no effect
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 001: expected token: ";", but found ")"
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : error 029: invalid expression, assumed zero
// C:\Users\claud\OneDrive\Desktop\HLDS\cstrike\addons\amxmodx\scripting\anti_block_all.sma(25) : fatal error 107: too many error messages on one line
need someone fix this errors please
Try to update your compile. Anyway, like BandiT said, use semiclip metamod module and add this cvar to your server.cfg:

Code: Select all

sv_force_ent_intersection 1
Its idea the same as your plugin should do, even might be more.
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests