AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved [REQ] mp_give_player_c4 for CZ (https://forums.alliedmods.net/showthread.php?t=332835)

SoulWeaver16 06-03-2021 17:44

[REQ] mp_give_player_c4 for CZ
 
1 Attachment(s)
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:

Supremache 06-03-2021 17:57

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by SoulWeaver16 (Post 2748779)
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?

Supremache 06-03-2021 18:28

Re: [REQ] mp_give_player_c4 for CZ
 
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 }

SoulWeaver16 06-03-2021 19:23

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by Supremache (Post 2748780)
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.

Supremache 06-03-2021 19:55

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by SoulWeaver16 (Post 2748785)
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

SoulWeaver16 06-03-2021 21:06

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by Supremache (Post 2748788)
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")


Supremache 06-03-2021 21:37

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by SoulWeaver16 (Post 2748794)
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

SoulWeaver16 06-03-2021 21:58

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by Supremache (Post 2748797)
I will test it

I am using Polymorph: Mod Manager and GunGame AMXX 1.17b
Maybe that has something to do

Supremache 06-03-2021 22:37

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by SoulWeaver16 (Post 2748800)
I am using Polymorph: Mod Manager and GunGame AMXX 1.17b
Maybe that has something to do

try it now #5

SoulWeaver16 06-04-2021 09:19

Re: [REQ] mp_give_player_c4 for CZ
 
Quote:

Originally Posted by Supremache (Post 2748806)
try it now #5

Thank you very much, the command works and does not give errors
But if I put it in the .ini that Polymorph provides to configure a mode, when entering CT or T the game sends me to the main menu
This shows in console
Code:

BUILD 8684 SERVER (0 CRC)
Server # 2
L 06/04/2021 - 10:09:04: [admin.amxx] Login: "SoulWeaver<1><STEAM_ID_LAN><>" became an admin (account "loopback") (access "abcdefghijklmnopqrstu") (address "loopback")
SoulWeaver conectado
SoulWeaver se une a la fuerza antiterrorista
Eric conectado
Eric se une a la fuerza antiterrorista
Reed conectado
Reed se une a la fuerza terrorista
Nick conectado
Nick se une a la fuerza antiterrorista
CPU  In    Out  Uptime  Users  FPS    Players
127.89  5.89  7.33      1    28  100.49      1
SZ_GetSpace: overflow on netchan->message
WARNING: reliable overflow for SoulWeaver
SoulWeaver overflowed
Reliable channel overflowed
Booster: Listenserver detected. Booster runs on HLDS only.

So I tried putting it in plugins.ini, and I control it through the command and it goes perfect, you are a genius

Edit: Surely this also with the other plugins, but the problem is that those did not have a command to deactivate or activate it at ease.
Thank you again.


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

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