i got a problem with my code.
pepole can use the protected models.
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Protected Models"
#define VERSION "1.0"
#define AUTHOR "CBM"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
}
public client_infochanged(id)
{
new model[33], authid[32]
get_user_authid(id,authid,31)
get_user_info(id,"model",model,32)
if(equali(model,"alhazblue") && !equali(authid,"STEAM_0:0:5968622"))
{
client_print(id,print_chat,"[ProtectModel] Sorry but this model is protected.")
set_user_info(id,"model","gordon")
}
if(equali(model,"alhazred") && !equali(authid,"STEAM_0:1:2334817"))
{
client_print(id,print_chat,"[ProtectModel] Sorry but this model is protected.")
set_user_info(id,"model","gordon")
}
return PLUGIN_HANDLED
}