Raised This Month: $51 Target: $400
 12% 

[HELP] Get vip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spooky HL15
Member
Join Date: Oct 2015
Old 06-15-2017 , 18:04   [HELP] Get vip
Reply With Quote #1

hi guys
i want someone help me
i make this plugin but it is need to fix password
i have level 15 in server i "say /vip" if i have 15 level
server give me vip + setinfo password Variable value 6 characters

* like this *
Code:
/* i want make password Variable value 6 characters */

#include <amxmodx>
#include <amxmisc>
#include <Colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new Name[33],bb_VIP
new password //here i want make password Variable value 6 characters//

native bb_level(id)

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /vip","Get_vip")
	
	bb_VIP = register_cvar("zp_viplevel","15")
}
public Get_vip(id){
	
	if(bb_level(id) > (get_pcvar_num(bb_VIP))) 
        { 
	new SteamID[32]
        get_user_authid(id,SteamID,31)
	get_user_name(id, Name, 32)
	server_cmd("amx_addadmin ^"%s^" ^"t^" ^"%s^" name",Name,password)
        server_cmd("kick #%d ^"Go To console to see your setinfo ^"",get_user_userid(id))
	client_cmd(id,"echo [Support] Your setinfo: Setinfo _pw ^"%s^"",password)
        } 
	ColorChat(id, RED, "[Support] You Need to Level 15 to Get VIP")
}

Last edited by spooky HL15; 06-15-2017 at 18:51.
spooky HL15 is offline
spooky HL15
Member
Join Date: Oct 2015
Old 06-16-2017 , 19:25   Re: [HELP] Get vip
Reply With Quote #2

no one help :'(
spooky HL15 is offline
spooky HL15
Member
Join Date: Oct 2015
Old 06-17-2017 , 08:18   Re: [HELP] Get vip
Reply With Quote #3

no one help me
spooky HL15 is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-17-2017 , 08:32   Re: [HELP] Get vip
Reply With Quote #4

i didnt undersand _O
__________________

Last edited by D3XT3R; 06-17-2017 at 08:33.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
spooky HL15
Member
Join Date: Oct 2015
Old 06-17-2017 , 09:32   Re: [HELP] Get vip
Reply With Quote #5

my question is how i can make a password Variable value in max mod menu
spooky HL15 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-17-2017 , 10:39   Re: [HELP] Get vip
Reply With Quote #6

Use this inc: https://forums.alliedmods.net/showthread.php?t=298597
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
spooky HL15
Member
Join Date: Oct 2015
Old 06-17-2017 , 17:50   Re: [HELP] Get vip
Reply With Quote #7

Quote:
Originally Posted by Craxor View Post
i test add your inc to my plugin but not work
can you show me how they work this inc nvp
spooky HL15 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-18-2017 , 02:58   Re: [HELP] Get vip
Reply With Quote #8

you have a native, example:
PHP Code:
nvp_set_passwordid59351251 
Password is '59351251' ( It MUST be a number ).

Then you write in you CS consonole:
Code:
setinfo _pw 59351251
Then in a function you scan if user is in the list and if He have the correct password for his steamId:
PHP Code:
if(nvp_user_password(id)) 
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-18-2017 , 04:18   Re: [HELP] Get vip
Reply With Quote #9

All this password stuff are for nonsteam servers,which its not allowed.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-18-2017 , 10:01   Re: [HELP] Get vip
Reply With Quote #10

Quote:
Originally Posted by Natsheh View Post
All this password stuff are for nonsteam servers,which its not allowed.

ban me mr.modder .

I can update for other things, like names, commands rezervation, etc
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Reply



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 06:59.


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