im trying to write a war pluging for cs, iv got most of it working except i wanted to create a random password to secure the server.
what i need to know if its even possible, can you take a bunch of random numbers from a variable and assign it to the cvar sv_password ?
heres what i got so far
Code:
public password_generator()
{
new password
password = random_num( 0,5 )
server_cmd("sv_password",password )
return PLUGIN_HANDLED
}
thanks