Raised This Month: $ Target: $400
 0% 

[REQ] admin get free armor. HE, FB


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tfk94
Veteran Member
Join Date: Jan 2011
Location: [url=http://www.gametrac
Old 02-11-2012 , 09:27   [REQ] admin get free armor. HE, FB
Reply With Quote #1

Can someone script me a plugin which gives to all admin a free 100 armor, 1 HE, 1 flashbank
10x
tfk94 is offline
BeeFighter
Member
Join Date: Feb 2012
Old 02-11-2012 , 09:42   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #2

PHP Code:
If(get_user_flags(id) & ADMIN_BAN)
{
             
give_item(id"weapon_hegrenade")
             
//add admin shit here

Written quickily on iPad .

Use ham player spawn to give it on each player spawn.
BeeFighter is offline
tfk94
Veteran Member
Join Date: Jan 2011
Location: [url=http://www.gametrac
Old 02-11-2012 , 09:45   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #3

i dont know how to script
very nice writting on ipad btw

Last edited by tfk94; 02-11-2012 at 09:45.
tfk94 is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 02-11-2012 , 10:08   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #4

I tried do this for awpmaps etc but cant compline, can someone fix this?

PHP Code:
#inclule <cstrike>

If(get_user_flags(id) & ADMIN_KICK

             
give_item(id"weapon_hegrenade"
             
give_item(id"weapon_flashbang"
             
give_item(id"weapon_flashbang"
             
give_item(id"weapon_smokegrenade"
             
give_item(id"item_assaultsuit"
             
}  
{
}

public 
handle_say(id) {
    new 
said[192]
    
read_args(said,192)
    if( ( 
containi(said"who") != -&& containi(said"admin") != -) || contain(said"/vips") != -)
        
set_task(0.1,"print_adminlist",id)
    return 
PLUGIN_CONTINUE

jonnzus is offline
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 02-11-2012 , 10:15   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("Free admin items""1.0""naXe")
    
    
RegisterHam(Ham_Spawn"player""respawn"1)
}

public 
respawn(id) {
    if(
is_user_alive(id) && get_user_flags(id) & ADMIN_BAN) {
        
give_item(id"item_kevlar")
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
    }

naXe is offline
Send a message via AIM to naXe
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 02-11-2012 , 10:19   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #6

Thanks <3
It is possible to add vips list to it? I mean when someone says /vips, all players with ADMIN BAN are in that list?
jonnzus is offline
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 02-11-2012 , 11:17   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init() {
    
register_plugin("Free admin items""1.0""naXe")
    
    
register_clcmd("say /vips""show_vips")
    
    
RegisterHam(Ham_Spawn"player""respawn"1)
}

public 
respawn(id) {
    if(
is_user_alive(id) && get_user_flags(id) & ADMIN_BAN) {
        
give_item(id"item_kevlar")
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
    }
}

public 
show_vips(id) {
    new 
players[32], name[33], numidsboolfalse;
    
get_players(playersnum)
    
    new 
menu_create("VIPs Online:""show_vips_")
    
    for(new 
0numi++) {
        
ids players[i]
        
        if(
is_vip(ids)) {
            
get_user_name(idsname32)
            
menu_additem(mname)
            
            
true
        
}
    }      
    
menu_display(idm)
    if(!
sclient_print(idprint_chat"There is no VIP Online.")
}

public 
show_vips_(idm) {
    
menu_destroy(m)
}

stock is_vip(id) {
    if(
get_user_flags(id) & ADMIN_BAN)
        return 
true
    
return false

?
naXe is offline
Send a message via AIM to naXe
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 02-11-2012 , 11:53   Re: [REQ] admin get free armor. HE, FB
Reply With Quote #8

Thanks
jonnzus 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 09:51.


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