Does anyone know why when i relog into my server after logging off, i only have 1 HP?
Probably because you're using GetPlayerHealth wrong. The actual health is stored in the referenced variable, but it sounds like you're using the return value of the function.