Raised This Month: $ Target: $400
 0% 

Because this plugin dont works on CSDM 2.1.2k?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-18-2011 , 18:40   Because this plugin dont works on CSDM 2.1.2k?
Reply With Quote #1

Tittle

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

#define PLUGIN "Colt/Ak"
#define VERSION "1.0"
#define AUTHOR "krm"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("ak47""Give_AK47")
    
register_concmd("m4a1""Give_M4A1")
}

public 
Give_AK47(id)
{
    
give_itemid"weapon_ak47" )
}

public 
Give_M4A1(id)
{
    
give_itemid"weapon_m4a1" )

__________________
kramesa is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-18-2011 , 18:57   Re: Because this plugin dont works on CSDM 2.1.2k?
Reply With Quote #2

Try to use different commands. Example:
PHP Code:
    register_concmd("test_ak47""Give_AK47")
    
register_concmd("test_m4a1""Give_M4A1"
__________________
Impossible is Nothing
Sylwester is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-18-2011 , 19:02   Re: Because this plugin dont works on CSDM 2.1.2k?
Reply With Quote #3

Quote:
Originally Posted by Sylwester View Post
Try to use different commands. Example:
PHP Code:
    register_concmd("test_ak47""Give_AK47")
    
register_concmd("test_m4a1""Give_M4A1"
Ok, i will try. Thanks!
__________________
kramesa is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 11-18-2011 , 19:35   Re: Because this plugin dont works on CSDM 2.1.2k?
Reply With Quote #4

Perhaps it doesn't work because CSDM blocks those commands. Make sure your plugin is loaded before CSDM.

Last edited by Backstabnoob; 11-18-2011 at 19:35.
Backstabnoob is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-18-2011 , 21:00   Re: Because this plugin dont works on CSDM 2.1.2k?
Reply With Quote #5

Works, thank!
__________________
kramesa 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 08:28.


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