Drop Auto Get Scout..help
Working on it..any help would be great
1.) im trying to get it so it can be both autosnipers teh T and the cT one.i only have one right now..2.) imma gonna display a HUD 3) take away the burrie.
Code:
/* AMXX Mod script.
*
* This file is provided as is (no warranties).
* A better awp restriction for cs (this works for 1.6)
* This plugin changes a players auto to a scout.
* Drops Auto gives Scout
*
*
* COMMANDS:
* ---------------
* amx_killautos (1|0) 1= On 0= Off
*/
#include <amxmodx>
#include <amxmisc>
#include <fun>
public check_g3sg1(id) {
if (get_cvar_num("amx_killautos")!=1)
{
return PLUGIN_CONTINUE
}else{
new parm[1]
parm[0] = id
set_task(0.1, "drop_g3sg1", id, parm, 1)
}
return PLUGIN_CONTINUE
}
public drop_g3sg1 (parm[]) {
new id = parm[0]
new origin[3]
get_user_origin(id, origin, 0)
origin[2] -= 2000
set_user_origin(id, origin)
engclient_cmd(id, "drop", "weapon_g3sg1")
give_item(id, "weapon_scout")
give_item(id, "ammo_762nato")
origin[2] += 2005
set_user_origin(id, origin)
}
public plugin_init() {
register_plugin("Kill-AllAutos", "0.0.1", "pWn | ShaRPiE")
register_event("WeapPickup", "check_g3sg1", "b","1=18")
register_cvar("amx_killautos", "1")
return PLUGIN_CONTINUE
}
|