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))
}