Raised This Month: $32 Target: $400
 8% 

Solved cs 1.6 variable setinfo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spooky HL15
Member
Join Date: Oct 2015
Old 06-02-2017 , 21:15   cs 1.6 variable setinfo
Reply With Quote #1

hi i want make buy vip but i do not now how to make variable setinfo
i make this buy i need to make variable setinfo plaese help
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <nvault>

#define VIP_FLAGS_TYPE "name" // Dont Change This
#define VIP_PASSWORD "" // here setinfo i do not now how i make variable setinfo
#define VIP_FLAGS_ACESS "t" // VIP Flags (You Can Use More Then 1 BUT You Should Use Only One)

public plugin_init() {
	register_clcmd("say /buyvip", "buy_vip")
	register_clcmd("say_team /buyvip", "buy_vip")
}
public buy_vip(id)
{
	if(is_user_admin(id))
		client_print(id, print_chat, "[Support] You Already Have VIP/ADMIN Flags!")
		
	else
	{

			buying_vip(id)
	}
}

// Setting User VIP If Could Bought VIP
public buying_vip(id)
{
	new VIP_N[32]
	new SteamID[32]
        get_user_authid(id,SteamID,31)
	get_user_name(id,VIP_N,31)
	
	server_cmd("amx_addadmin ^"%s^" e ^"%s^" name", VIP_N,VIP_PASSWORD)
	client_cmd(id,"echo [Support] setinfo _pw ^"%s^"",VIP_PASSWORD)
	server_cmd("kick #%d ^"Go to console for see your setinfo^"",get_user_userid(id))
	

}

Last edited by spooky HL15; 06-02-2017 at 21:16.
spooky HL15 is offline
Reply


Thread Tools
Display Modes

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 21:07.


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