i already know that where should i place it??
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#define PLUGIN "M249"
#define VERSION "1.0"
#define AUTHOR "razieljohn619"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawnPost", 1 );
}
public hasWeapon(id, weapid){
new weapons[32], wnum
get_user_weapons(id, weapons, wnum)
for(new i = 0; i < wnum; i++){
if(weapons[i] == weapid) return 1
}
return 0
}
public FwdPlayerSpawnPost( iPlayer )
{
if( is_user_alive( iPlayer ) )
{
if( cs_get_user_shield ))
{
set_task(0.1, "//player has")
}
else
{
set_task(0.1, "//player does not have")
}
}
}
public //player has(id)
{
//commands
}
public //player does not have(id)
{
//commands
}
should it be like that??
__________________