Hi guys !
I need help with a plugin that gives players kevlar+helmet everytime they spawn on my deathmatch server. This plugin gives error messages like :
L 03/15/2011 - 19:24:02: [CSTRIKE] Invalid player 4
L 03/15/2011 - 19:24:02: [AMXX] Run time error 10 (plugin "kevlar.amxx") (native
"cs_set_user_armor") - debug not enabled!
L 03/15/2011 - 19:24:02: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).
Maybe, this bug could be fixed ? Here's the code :
Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>
public plugin_init()
{
register_plugin("Drop Kevlar", "1.0", "unknown")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
}
public ham_PlayerSpawn_Post(id)
{
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
}
Thanks !