Raised This Month: $ Target: $400
 0% 

Cur Map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 11-07-2009 , 15:02   Cur Map
Reply With Quote #1

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

PHP Code:
give_item(player"item_kevlar");
give_item(player"item_assaultsuit");
give_item(player"item_thighpack"); 
__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-07-2009 , 15:51   Re: Cur Map
Reply With Quote #2

Moved from the SourceMod forums.
bl4nk is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-07-2009 , 15:52   Re: Cur Map
Reply With Quote #3

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.
__________________
xPaw is offline
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 11-08-2009 , 06:09   Re: Cur Map
Reply With Quote #4

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

__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 11-08-2009 , 14:50   Re: Cur Map
Reply With Quote #5

if its for cstrike

use

cs_set_user_armor(index, ammount, type)
it is better for cstrike.
Doc-Holiday is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-08-2009 , 16:12   Re: Cur Map
Reply With Quote #6

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
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 11-08-2009 , 16:42   Re: Cur Map
Reply With Quote #7

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?
__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
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 17:34.


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