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

[REQ] CS 1.6 VIP Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-25-2014 , 23:43   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #11

PHP Code:
public client_putinserver(id)
{
    
server_cmd("amx_addadmin ^"%d^" ^"^" ^"t^" ^"b^" ",get_user_userid(id))

__________________
Eagle07 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-26-2014 , 05:48   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #12

Quote:
Originally Posted by Eagle07 View Post
PHP Code:
public client_putinserver(id)
{
    
server_cmd("amx_addadmin ^"%d^" ^"^" ^"t^" ^"b^" ",get_user_userid(id))

Or simply edit your vip plugin and remove flag check ?
HamletEagle is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-26-2014 , 15:34   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #13

Or change the AMXX Default Flags
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 10-17-2015, 15:45
Amine Belokda
This message has been deleted by asherkin.
Old 10-17-2015, 15:54
Amine Belokda
This message has been deleted by asherkin.
Old 10-17-2015, 16:06
wickedd
This message has been deleted by asherkin.
Sylcanaj
New Member
Join Date: Apr 2020
Old 04-27-2020 , 12:43   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #14

Quote:
Originally Posted by Eagle07 View Post
PHP Code:
public client_putinserver(id)
{
    
server_cmd("amx_addadmin ^"%d^" ^"^" ^"t^" ^"b^" ",get_user_userid(id))

im new here and i see this, i want all players on my server to become a VIP, where should i paste this? thanks if you or anybody help me.
Sylcanaj is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-27-2020 , 13:34   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #15

Quote:
Originally Posted by Sylcanaj View Post
im new here and i see this, i want all players on my server to become a VIP, where should i paste this? thanks if you or anybody help me.
Nowhere, because it's not needed. Open "configs/amxx.cfg" and change "amx_default_access".
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Sylcanaj
New Member
Join Date: Apr 2020
Old 04-27-2020 , 14:57   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #16

Quote:
Originally Posted by Eagle07 View Post
PHP Code:
public client_putinserver(id)
{
    
server_cmd("amx_addadmin ^"%d^" ^"^" ^"t^" ^"b^" ",get_user_userid(id))

Quote:
Originally Posted by OciXCrom View Post
Nowhere, because it's not needed. Open "configs/amxx.cfg" and change "amx_default_access".
yes, how should i change to have all players those VIP status ? what should i write instead of : amx_default_access "z"?
Sylcanaj is offline
Carrion
Member
Join Date: Mar 2020
Old 04-28-2020 , 06:41   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #17

Quote:
Originally Posted by Sylcanaj View Post
yes, how should i change to have all players those VIP status ? what should i write instead of : amx_default_access "z"?
i`m newbie here and try it not tested

amx_all_flags "bim" - is cvar which flags to give



PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN  "ALL VIP"
#define VERSION "1.0"
#define AUTHOR  "Carrion"
#define IGNORE_FLAGS (ADMIN_CHAT|ADMIN_LEVEL_A)

new cvar_flags

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
cvar_flags register_cvar("amx_all_flags""bim")
    
RegisterHam(Ham_Spawn"player""PlayerSpawn"true);
}

public 
PlayerSpawn(id) {
    if(!
is_user_connected(id)) return;
    new 
string[16];
    
get_pcvar_string(cvar_flagsstring15);
    new 
new_flags read_flags(string);
    new 
old_flags get_user_flags(id);
    if(
old_flags IGNORE_FLAGS) return;
    
set_user_flags(idold_flags new_flags);
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by Carrion; 04-28-2020 at 06:46.
Carrion is offline
Sylcanaj
New Member
Join Date: Apr 2020
Old 04-28-2020 , 08:58   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #18

Quote:
Originally Posted by Carrion View Post
i`m newbie here and try it not tested

amx_all_flags "bim" - is cvar which flags to give



PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN  "ALL VIP"
#define VERSION "1.0"
#define AUTHOR  "Carrion"
#define IGNORE_FLAGS (ADMIN_CHAT|ADMIN_LEVEL_A)

new cvar_flags

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
cvar_flags register_cvar("amx_all_flags""bim")
    
RegisterHam(Ham_Spawn"player""PlayerSpawn"true);
}

public 
PlayerSpawn(id) {
    if(!
is_user_connected(id)) return;
    new 
string[16];
    
get_pcvar_string(cvar_flagsstring15);
    new 
new_flags read_flags(string);
    new 
old_flags get_user_flags(id);
    if(
old_flags IGNORE_FLAGS) return;
    
set_user_flags(idold_flags new_flags);
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/ 
Thanks for trying to help, also im new here, can u tell me where should i paste this code ? or what should i do ?
Sylcanaj is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-28-2020 , 13:44   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #19

I'll repeat myself - you DON'T need a plugin for this. Change the "amx_default_access".
This cvar controls which flags users get by default when they enter the server. "z" stands for normal user and usually has no extras.
The extras depend on the plugin you have on your server, so if you have the extras set on flag "b", you would set the cvar to "bz", meaning all players will have the flags "b" and "z", thus having access to the extras.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Carrion
Member
Join Date: Mar 2020
Old 04-28-2020 , 21:56   Re: [REQ] CS 1.6 VIP Plugin
Reply With Quote #20

you dont need plugin
this function already exits
open AMXX.CFG file and edit it
find amx_default_access "z"
Carrion is offline
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 11:41.


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