Hi, i have server and if you are join, you will have 5 points. You can buy items for this points. But if you reconnect, you will have 5 points again and this is bad.
So i try edited and script do this:
Code:
public client_disconnect( id ) {
check_disconnect[ id ] = 1;
and
Code:
public client_putinserver( id )
{
if (check_disconnect[id])
{
points[id] = get_pcvar_num(points_disconnect);
}
return PLUGIN_CONTINUE;
}
So after this if client disconnect and he come again, he have 0 points (points_disconnect). All works fine but ... If do reconnect one player on the server, all players on the server have 0 points for reconnect. Why ? I defined ID and only this player ID obtained points_disconnect. Help me ...