Hello i need some help with a a plugin its a boxing day for my jailbreak server but the problem is it doesnt have any models im noob in coding i just want to have so the Terrorists have boxing models when box day is started if someone can help me grtz
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Day: Box"
#define VERSION "1.0"
#define AUTHOR "asdfdsdf"
forward jailbreak_day_start(dayid)
forward jailbreak_day_end()
native jailbreak_day_add(name[32], description[200], blockguns, weapon, survivor, blockdamage)
public plugin_precache( )
{
precache_model("models/boxing_mod/v_box_red.mdl" )
}
new intDay, intMaxplayers
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add: Day
intDay = jailbreak_day_add("Box Day", "Terrorists needs to kill each other, surviver wins", 1, 0, 1, 1)
// Others
intMaxplayers = get_maxplayers()
}
public jailbreak_day_start(dayid)
{
if(dayid == intDay)
{
for(new i = 1; i <= intMaxplayers; i++)
{
if(is_user_alive(i))
{
if(cs_get_user_team(i) == CS_TEAM_T)
{
strip_user_weapons(i)
give_item(i, "weapon_knife")
cs_set_user_model(i, "boxing_mod")
set_user_health(i, 400)
}
}
}
server_cmd("mp_friendlyfire 1")
}
}