Zombie Mod - Weapon Remove
Hi..
i work on a zombie mod plugin by hawk552... now i want to remove the weapons of a zombie... like strip_user_weapons().. but this bad, because in the next round you can't pick up weapons or use any weapons.. so i have asked in the german forum for help.. i became this hint: Quote:
this doesn't work.. if i start a the game and the round start the game shut down without any errors... no logfiles or anythink... here you can see the code: www.ithron.srv4.hostingwerk.de/zombie_strike.sma can you help me, pls? =) cYa.. [€dit] i already have downloaded the fakemeta_util.inc that's not the problem... |
Re: Zombie Mod - Weapon Remove
Moin,
Quote:
Code:
public plugin_init() { |
Re: Zombie Mod - Weapon Remove
hmm.. danke schonmal (zum zweiten mal ;) )
aber was soll ich für roundstatus einsetzen? wie les aus ob die runde noch an ist oder nicht? und brauch ich noch den teil, den du oben gepostet hast? oder ist das was unabhängiges? dort werden ja keine waffen gedropt... |
Re: Zombie Mod - Weapon Remove
Moin,
Quote:
u can full block the pickup for every player with Code:
public PlayerPickup(entity, player) {i use roundstatus to detect if the round is running or not (i mean between roundstart-event and roundend-event) ... this var will set on the corresponding event's the is_user_zombie() function checks if a player on the zombie-side ... this side will change on every new map on my server hand, mogel |
Re: Zombie Mod - Weapon Remove
German:
Hi, les dir einfach mal hier den neusten Kommentar durch: http://www.amxmodx.org/funcwiki.php?...vent&go=search Ich denke, du bist inder Lage, dass mit einer globalen Variable auszunutzen. ;) English: Hello, just read through the newest comment from here: http://www.amxmodx.org/funcwiki.php?...vent&go=search I think you are smart enough to make use of this with a global variable. ;) |
Re: Zombie Mod - Weapon Remove
Hi,
Quote:
hand, mogel |
Re: Zombie Mod - Weapon Remove
hmm.. i see^^
also i have to replace "roundstatus != RS_RUNNING" with "g_bRoundEnded == true " because my roundstatus event is: g_bRoundEnded but i have to replace PlayerPickup(entity, player) etc.. with PlayerPickup(entity, id).. or? i have only worked with id ^^ and what's with the ct... the ct's aren't allowed to pickup weapons, too... or? and what's with buying? will this event forbid buying for zombies (or humans)? how i can set this event only for zombies.. i think it's now set for all players.. register_touch("weaponbox", "player", "PlayerPickup") will it work if i copy this line to the zombie block? oh.. and what's "weaponbox"? it's not defined.. or? o.O... i have to learn amxx coding xD k.. i'll do it^^ cYa =) |
Re: Zombie Mod - Weapon Remove
Hi,
Quote:
Quote:
Quote:
Quote:
hand, mogel |
Re: Zombie Mod - Weapon Remove
hi...
i'm a newb... >.< Code:
switch(g_iZombie[id])Error: Undefined symbol "entity" i have no idea what i have to do... define entity.. ok.. but what's that? :D and how i can forbid buying for people? exist a plugin for this? i'll search...^^ thank you for your patience ;-) cYa... |
Re: Zombie Mod - Weapon Remove
Omg,
you have problems with event based programming ... you dont need to call this function ... the system (amxx) call this function, if a player run over the weapon hand, mogel |
| All times are GMT -4. The time now is 10:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.