Raised This Month: $ Target: $400
 0% 

Assigning variables to cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Anthraxnz
Senior Member
Join Date: May 2005
Location: New Zealand
Old 05-26-2005 , 05:25   Assigning variables to cvars
Reply With Quote #1

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
Anthraxnz is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode