I want to set an info for 1 player and only on that PC only (Like a special reward and prevent to share it).
I used set_user_info and get_user_info but I think it didn't work
PHP Code:
public test(id)
{
static name[35];
for(new i = 1; i < g_MaxPlayers; i++)
{
get_user_name(id, name, charmaxs(name))
if(equal(name, "Celena Luna"))
{
set_user_info(id, "_sp", "656")
break
}
}
}
public client_putinserver(id)
{
new info[5]
get_user_info(id, "_sp", info, charmaxs(info))
if(str_to_num(info) == 656)
g_special[id] = true
}
__________________