AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] admin get free armor. HE, FB (https://forums.alliedmods.net/showthread.php?t=178102)

tfk94 02-11-2012 09:27

[REQ] admin get free armor. HE, FB
 
Can someone script me a plugin which gives to all admin a free 100 armor, 1 HE, 1 flashbank
10x

BeeFighter 02-11-2012 09:42

Re: [REQ] admin get free armor. HE, FB
 
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.

tfk94 02-11-2012 09:45

Re: [REQ] admin get free armor. HE, FB
 
i dont know how to script
very nice writting on ipad btw :D

jonnzus 02-11-2012 10:08

Re: [REQ] admin get free armor. HE, FB
 
I tried do this for awpmaps etc but cant compline, can someone fix this?:D

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



naXe 02-11-2012 10:15

Re: [REQ] admin get free armor. HE, FB
 
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")
    }



jonnzus 02-11-2012 10:19

Re: [REQ] admin get free armor. HE, FB
 
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?

naXe 02-11-2012 11:17

Re: [REQ] admin get free armor. HE, FB
 
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


? :D

jonnzus 02-11-2012 11:53

Re: [REQ] admin get free armor. HE, FB
 
Thanks:D


All times are GMT -4. The time now is 09:51.

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