Now i see why it writes a LooT of messages, how can i change this commands:
Server assigns player class (i think i should change PreThink too):
PHP Code:
public fw_Player_PreThink( id )
{
if(is_user_connected( id ) && is_user_alive( id ) && ( get_user_team( id ) == 1 ))
{
g_Player_Class[id] = 1
}
return PLUGIN_CONTINUE
}
When class is assigned it writes message:
PHP Code:
{
if(g_Player_Class[id] == 1)
{
client_print(id, print_chat, "[AMXX] Your class is:...")
}
return PLUGIN_HANDLED
}
And i have one other question: How can server assign player class randomly when he connects? (g_Player_Class[id] = 1 / 2 / 3 /4 /5)