Code:
<amxmodx>
<amxmisc>
<cstrike>
<engine>
#DEFINE PLUGIN_NAME "Name Changer"
#DEFINE PLUGIN_VERSION "1.0"
#DEFINE PLUGIN_AUTHOR "hYp3r"
#DEFINE [MAXNAMES] "3"
#DEFINE newPlayerName "www.1HitKill.com"
public plugin_init {
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("CurWeapon", "Weapon_check", "be") ;
}
public Weapon_check(id) {
new name
cs_get_user_name(id, name, 32);
new allowednames[MAXNAMES][3] = {
"empty",
"Player",
"player"
}
if(equali(allowednames, name) {
client_cmd("name %s, newPlayerName")
return_PLUGIN
}
Doesnt compile right please help me and look at it/
thanks.!