View Single Post
Author Message
sweman
Junior Member
Join Date: Jan 2008
Old 01-09-2008 , 16:37   Plugin needed in Hide n Seek...
Reply With Quote #1

Hi everyone! I got a CS 1.6 Hide n Seek server that worked great until peolpe firgured out that if u join T a litle bit after the round starts u get a knife that wont be dropped by my plugin stripspawnweapons which works in the start of the round.
So i wonder if u could make a plugin which strips the knife of the Terrorists who joins after roundstart... or maybe if I could change something in stripspawnweapons.sma? :

Quote:
#include <amxmodx>
#include <engine>
public plugin_init() {
register_plugin("Strip Glock(T) and Usp(CT) on Spawn", "0.1", "VEN")
register_event("ResetHUD", "event_hud_reset", "be")
}
public event_hud_reset(id) {
set_task(0.1, "task_strip_glock_usp", id)
}
public task_strip_glock_usp(id) {
if (!is_user_alive(id))
return
new weapon_name[15]
switch (get_user_team(id)) {
case 1: weapon_name = "weapon_glock18"
case 2: weapon_name = "weapon_usp"
case 3: weapon_name = "weapon_knife"
default: return
}

new weapon = find_ent_by_owner(-1, weapon_name, id)
if (!weapon)
return
engclient_cmd(id, "drop", weapon_name)
new weaponbox = entity_get_edict(weapon, EV_ENT_owner)
if (!weaponbox || weaponbox == id)
return
remove_entity(weaponbox)
remove_entity(weapon)
}
Maybe a plugin like this already exist, but I've been looking everywhere with no result...

I need the help plzz...
sweman is offline