Raised This Month: $ Target: $400
 0% 

vip only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 01-24-2019 , 15:24   vip only
Reply With Quote #1

how can i make it only vip i know its a #define but i forgot =]

HTML Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

public plugin_init()
{
    register_plugin("troll", "1.0", "Dragos")
    register_clcmd("say /start","spec");
    register_clcmd("say_team /start","spec");
    register_clcmd("say /stop","ct");
    register_clcmd("say_team /stop","ct");
}
 
public spec(id)
{
	if(is_user_alive(id))
	{
		set_user_armor(id, 99999999)
		set_user_health(id, 99999999)
		give_item(id, "weapon_ak47")
		set_user_noclip(id, 1)
	}
}

public ct(id)
{
	if(is_user_alive(id))
	{
		set_user_noclip(id, 0)
	}
}
Dragos is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-24-2019 , 15:51   Re: vip only
Reply With Quote #2

Quote:
Originally Posted by Dragos View Post
how can i [...]
Quote:
Originally Posted by Dragos View Post
HTML Code:
#include <amxmodx>
[...]
I have moved your thread into the AMX Scripting section instead.

In order to help yourself to get helped in the future, please pay more attention to where you place your posts.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-24-2019 , 16:58   Re: vip only
Reply With Quote #3

PHP Code:
if(get_user_flags(id) & INSERT_ADMIN_FLAG_HERE)
{
    
// code here...

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 01-24-2019 , 17:55   Re: vip only
Reply With Quote #4

you can try this
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

public plugin_init()
{
    
register_plugin("troll""1.0""Dragos")
    
register_clcmd("say /start","spec"ADMIN_LEVEL_H);
    
register_clcmd("say_team /start","spec"ADMIN_LEVEL_H);
    
register_clcmd("say /stop","ct"ADMIN_LEVEL_H);
    
register_clcmd("say_team /stop","ct"ADMIN_LEVEL_H);
}
 
public 
spec(id)
{
    if(
is_user_alive(id))
    {
        
set_user_armor(id99999999)
        
set_user_health(id99999999)
        
give_item(id"weapon_ak47")
        
set_user_noclip(id1)
    }
}

public 
ct(id)
{
    if(
is_user_alive(id))
    {
        
set_user_noclip(id0)
    }

if no, use OciXCrom's one
__________________
a simple act of caring creates an endless ripple.
Nutu_ 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 07:30.


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