Raised This Month: $ Target: $400
 0% 

Solved simple question - problem with setting pass with parm


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nacknic
Senior Member
Join Date: Mar 2019
Old 05-24-2021 , 12:28   Re: simple question - problem with setting pass with parm
Reply With Quote #3

thank this work for me :
Code:
#include <amxmodx>

new sv_password
public plugin_init() {
	sv_password = get_cvar_pointer("sv_password")
	register_clcmd("say !setpass", "set_pass")
}

public set_pass() {
         new sPassword[16] 
	sPassword = "123" 
	set_pcvar_string(sv_password, sPassword)
}

Last edited by nacknic; 05-24-2021 at 12:42.
nacknic 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 02:32.


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