AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Because this plugin dont works on CSDM 2.1.2k? (https://forums.alliedmods.net/showthread.php?t=172309)

kramesa 11-18-2011 18:40

Because this plugin dont works on CSDM 2.1.2k?
 
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" )



Sylwester 11-18-2011 18:57

Re: Because this plugin dont works on CSDM 2.1.2k?
 
Try to use different commands. Example:
PHP Code:

    register_concmd("test_ak47""Give_AK47")
    
register_concmd("test_m4a1""Give_M4A1"


kramesa 11-18-2011 19:02

Re: Because this plugin dont works on CSDM 2.1.2k?
 
Quote:

Originally Posted by Sylwester (Post 1598794)
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!

Backstabnoob 11-18-2011 19:35

Re: Because this plugin dont works on CSDM 2.1.2k?
 
Perhaps it doesn't work because CSDM blocks those commands. Make sure your plugin is loaded before CSDM.

kramesa 11-18-2011 21:00

Re: Because this plugin dont works on CSDM 2.1.2k?
 
Works, thank!


All times are GMT -4. The time now is 08:28.

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