Im trying to write a script that will drop the awp from a player when they pick it up or if they already have it. Heres what I have so far....
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init()
{
register_plugin("Awp Drop", "1.0", "KaoS")
register_event("WeapPickup", "awpDrop", "be", "1=18")
register_event("CurWeapon", "AwpDrop", "be", "1=1")
new map[32]
get_mapname(map, 31)
if(containi(map, "awp_") > -1)
{
pause("a")
}
}
public awpDrop(id)
{
engclient_cmd(id, "drop")
}
public AwpDrop(id)
{
new wpID = read_data(2)
if(wpID == CSW_AWP)
engclient_cmd(id, "drop")
}
If anybody can help me thanks.