Okay this is mine script:
Code:
// Don't pay attention to these includes - I have more stuff that requires this modules
#include <amxmodx>
#include <core>
#include <engine>
#include <fun>
public plugin_init()
{
register_plugin("CheckModel_GiveFunction","dunno","LynX")
register_clcmd("check","check_function")
return PLUGIN_CONTINUE
}
new model[33][33]
public check_function(id)
{
if ((get_user_info(id,"model","gign",32) = 1)
{
client_print(id, print_center, "Using Gign")
return PLUGIN_HANDLED
}
if ((get_user_info(id,"models","arctic",32) = 1)
{
client_print(id, print_center, "Using Arctic")
return PLUGIN_HANDLED
}
client_print(id, print_center, "Not using two predefined models")
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_model("models/player/arctic/arctic.mdl")
precache_model("models/player/gign/gign.mdl")
return PLUGIN_HANDLED
}
I need that if its model 1 ( in this case gign.mdl ) is current player model - player gets function number one.
But, if its model 2 ( in this case arctic.mdl ) current player model - player gets function number two.
BUT, if it isn't neither gign or arctic as players model - script does different function.
But, I cannot affor myself to user natives like cs_get_user_model coz that would not work.
Any help?
So, can you fix this code and add/remove things needed to get this stuff working?
__________________