AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cur Map (https://forums.alliedmods.net/showthread.php?t=108625)

LostSkill 11-07-2009 15:02

Cur Map
 
Well i just whana ask or this code will work if map runs example AWP_INDIA and i whana do command to turn off one plugin command:

PHP Code:

 #include <amxmodx>
 
#define PLUGIN "Map"
#define VERSION "1.0"
#define AUTHOR "LostSkill"

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR);
 
    
set_task(1.0"taskCheckMap"0""0"b"0);
}
 
public 
taskCheckMap()
{
    new 
szMap32 ]; 
    
get_mapnameszMap31 ); 
     
    if( 
equaliszMap"35hp_2" ) ) 
    { 
    
server_cmd("amx_armor 0")
    }


and wich of them is helm and armor :D

PHP Code:

give_item(player"item_kevlar");
give_item(player"item_assaultsuit");
give_item(player"item_thighpack"); 


bl4nk 11-07-2009 15:51

Re: Cur Map
 
Moved from the SourceMod forums.

xPaw 11-07-2009 15:52

Re: Cur Map
 
Code:
#include <amxmodx>   #define PLUGIN "Map" #define VERSION "1.0" #define AUTHOR "LostSkill" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);         new szMap[ 32 ];     get_mapname( szMap, 31 );     if( equali( szMap, "35hp_2" ) ) {         server_cmd( "amx_armor 0" );     } }

give_item( player, "item_assaultsuit" ); - This is kevlar+vest.

LostSkill 11-08-2009 06:09

Re: Cur Map
 
thx xPaw it works i got one more question i use this for VGUI Menu on buy'ing its restrict AWP but if player use old menu style he can buy awp can u say me where is problem?

PHP Code:

public plugin_init()
{
    
register_plugin("restrict""1.0""LostSKill")

           
register_clcmd("awp","HandleCmd")
        
register_clcmd("sg550","HandleCmd")
        
register_clcmd("g3sg1","HandleCmd")
}

public 
HandleCmd(id){
    if(
get_user_flags(id) & ADMIN_LEVEL_H
        return 
PLUGIN_CONTINUE
    client_print
(idprint_center"Sniper's Only For VIP's")
    return 
PLUGIN_HANDLED



Doc-Holiday 11-08-2009 14:50

Re: Cur Map
 
if its for cstrike

use

cs_set_user_armor(index, ammount, type)
it is better for cstrike.

Exolent[jNr] 11-08-2009 16:12

Re: Cur Map
 
No need for a plugin.

Create this directory:
addons/amxmodx/configs/maps

In the maps folder, create this file:
your_map_name.cfg

In that file, add this line:
amx_armor 0

LostSkill 11-08-2009 16:42

Re: Cur Map
 
There is all fine i mena about that MAP but i ask now about restric ;p guys whit VGUI menu it restrict awp's but whit old style menu i can buy awp somebody know what problem is?


All times are GMT -4. The time now is 17:34.

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