ok guys i want to make a plugin for someone that will give CT's a knife and T's 1 smoke and 2 flashes.
i was gonna just edit my other plugin i made for my clan
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Surf Map Weapons"
#define VERSION "1.0"
#define AUTHOR "Reaper2331"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
new mapname[32]
get_mapname(mapname, 31)
if(containi(mapname, "surf"))
register_event("ResetHUD", "playerSpawn", "be")
}
public playerSpawn(id)
{
set_task(2.0, "checkGuns", id)
}
public checkGuns(id)
{
strip_user_weapons(id)
give_item(id,"weapon_knife")
give_item(id,"weapon_deagle")
give_item(id,"weapon_kevlar")
set_user_health(id, 100)
server_cmd("say [AMXX] Surf Mode Activated you now have a Deagle and kevlar")
}
but i really dont know how to get a users team and how to do it.
__________________