Raised This Month: $ Target: $400
 0% 

Solved [REQ] mp_give_player_c4 for CZ


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 06-03-2021 , 17:44   [REQ] mp_give_player_c4 for CZ
Reply With Quote #1

Well, as the title makes clear, recreate the CSGO command in CS 1.6/CZ, to prevent c4 from appearing in de_ maps.
As in maps fy_

Supremache plugin:
Attached Files
File Type: sma Get Plugin or Get Source (Remove_C4.sma - 99 views - 919 Bytes)

Last edited by SoulWeaver16; 06-04-2021 at 09:26.
SoulWeaver16 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-03-2021 , 17:57   Re: [REQ] mp_give_player_c4 for CZ
Reply With Quote #2

Quote:
Originally Posted by SoulWeaver16 View Post
Well, as the title makes clear, recreate the CSGO command in CS 1.6/CZ, to prevent c4 from appearing in de_ maps.
As in maps fy_
More example, you want plugin for giving c4 to other player by command?
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 06-03-2021 , 19:23   Re: [REQ] mp_give_player_c4 for CZ
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
More example, you want plugin for giving c4 to other player by command?
No, no, I'm looking for a plugin to block map targets
Especially for GunGame AMXX 1.17b (other versions do not work for me), since the command gg_block_objectives 1
It does not prevent the player/bots from embracing with the c4, in vain, because when taking it the command forces them to throw it, this in the bots, causes them to be in the place to spawn T taking the c4 and run to the bombing sites, and return by c4, where they released it.
Try the No Objectives v0.3 (+ no round timer) and No Weapon Drop on Death v0.2 plugins
But No Objectives closes the game for me (I don't know why, because it lets me compile it well and I have the modules)
and the other, I don't know how to configure it so that when you release c4 it disappears like dropping a weapon.
I think it's possible, that is, the Zombie Plague, you can play it on any map and you can block the targets without problems.
SoulWeaver16 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-03-2021 , 19:55   Re: [REQ] mp_give_player_c4 for CZ
Reply With Quote #4

Quote:
Originally Posted by SoulWeaver16 View Post
No, no, I'm looking for a plugin to block map targets
Especially for GunGame AMXX 1.17b (other versions do not work for me), since the command gg_block_objectives 1
It does not prevent the player/bots from embracing with the c4, in vain, because when taking it the command forces them to throw it, this in the bots, causes them to be in the place to spawn T taking the c4 and run to the bombing sites, and return by c4, where they released it.
Try the No Objectives v0.3 (+ no round timer) and No Weapon Drop on Death v0.2 plugins
But No Objectives closes the game for me (I don't know why, because it lets me compile it well and I have the modules)
and the other, I don't know how to configure it so that when you release c4 it disappears like dropping a weapon.
I think it's possible, that is, the Zombie Plague, you can play it on any map and you can block the targets without problems.
I think this what you want
Code:
#include <amxmodx> #include <engine> #include <hamsandwich> #define PLUGIN "Remove C4" #define VERSION "1.0" #define AUTHOR "author" new g_pCvarRemoveC4 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         if (find_ent_by_class(-1, "func_bomb_target") || find_ent_by_class(-1, "info_bomb_target"))     {         RegisterHam(Ham_Spawn, "player", "fPlayerSpawnPost", 1)         server_cmd("sv_restart 1");     }     g_pCvarRemoveC4 = register_cvar( "mp_give_player_c4", "1" ); } public fPlayerSpawnPost() {     if(get_pcvar_num(g_pCvarRemoveC4))     {         new target = -1, classname[] = "func_bomb_target"         while ((target = find_ent_by_class(target, classname)))             remove_entity(target)         classname = "info_bomb_target"         while ((target = find_ent_by_class(target, classname)))             remove_entity(target)     } }

if not what you want , then i don't understand you
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 06-03-2021 at 22:36.
Supremache is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 06-03-2021 , 21:06   Re: [REQ] mp_give_player_c4 for CZ
Reply With Quote #5

Quote:
Originally Posted by Supremache View Post
I think this what you want
For some reason close my game, well, don't worry, thanks anyway

The registry does not tell me anything, I do not know where I should see where it fails
Code:
L 06/03/2021 - 22:00:52: [polymorph.amxx] [Polymorph] Mod not found. Restart server.
L 06/03/2021 - 22:00:56: [admin.amxx] Login: "SoulWeaver<1><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:03: [admin.amxx] Login: "SoulWeaver<1><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:11: -------- Mapchange to de_dust2 --------
L 06/03/2021 - 22:01:13: [admin.amxx] Login: "SoulWeaver<21><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:14: [admin.amxx] Login: "SoulWeaver<21><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:21: -------- Mapchange to de_dust2 --------
L 06/03/2021 - 22:01:23: [admin.amxx] Login: "SoulWeaver<41><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:24: [admin.amxx] Login: "SoulWeaver<41><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
SoulWeaver16 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-03-2021 , 21:37   Re: [REQ] mp_give_player_c4 for CZ
Reply With Quote #6

Quote:
Originally Posted by SoulWeaver16 View Post
For some reason close my game, well, don't worry, thanks anyway

The registry does not tell me anything, I do not know where I should see where it fails
Code:
L 06/03/2021 - 22:00:52: [polymorph.amxx] [Polymorph] Mod not found. Restart server.
L 06/03/2021 - 22:00:56: [admin.amxx] Login: "SoulWeaver<1><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:03: [admin.amxx] Login: "SoulWeaver<1><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:11: -------- Mapchange to de_dust2 --------
L 06/03/2021 - 22:01:13: [admin.amxx] Login: "SoulWeaver<21><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:14: [admin.amxx] Login: "SoulWeaver<21><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:21: -------- Mapchange to de_dust2 --------
L 06/03/2021 - 22:01:23: [admin.amxx] Login: "SoulWeaver<41><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
L 06/03/2021 - 22:01:24: [admin.amxx] Login: "SoulWeaver<41><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
I will test it
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-03-2021 , 18:28   Re: [REQ] mp_give_player_c4 for CZ
Reply With Quote #7

Try this:
Untested...
Code:
#include <amxmodx> #include <amxmisc> #include <fakemeta_util> #define PLUGIN "Give player c4" #define VERSION "1.0" #define AUTHOR "Supremache" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("amx_givec4", "GiveC4", ADMIN_LEVEL_E, " <player>"); } public GiveC4(id, iLevel, iCid) {     if(cmd_access(id, iLevel, iCid, 1))     {         static cTarget[32], iTarget                 read_argv( 1, cTarget, charsmax(cTarget));                 iTarget = cmd_target( id, cTarget, CMDTARGET_ALLOW_SELF | CMDTARGET_NO_BOTS );                 if(!iTarget)         {             console_print(id, "Invalid player or matching multiple targets!");             return PLUGIN_HANDLED         }                 // Is bomb carried/who is the carrier?         new carrier = 0, ownerent, bomb = fm_find_ent_by_class(-1, "weapon_c4")         if (bomb && (ownerent = pev(bomb, pev_owner)) <= get_maxplayers())         carrier = ownerent                 if (carrier) // we have the carrier             fm_transfer_user_gun(carrier, iTarget, CSW_C4)         else  // we do not have a carrier             fm_give_item(iTarget, "weapon_c4")         return PLUGIN_HANDLED             }     return PLUGIN_HANDLED }
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 06-03-2021 at 18:30.
Supremache is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode