Raised This Month: $ Target: $400
 0% 

Using #define to set command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-12-2013 , 11:33   Re: Using #define to set command
Reply With Quote #3

1. There is a space, maybe wasn't copied correctly.
2. Why not?
3. I dont want to Hook Say for that, isn't a possible to use register_clcmd?

Sorry, I went full retard, didn't check the log. -_-
Quote:
[AMXX] Plugin "test.amxx" failed to load: Module/Library "iwasabi" required for plugin. Check modules.ini.
Working now.

PHP Code:
new const szSayCommandSlash[]     = "say /pmodel"
new const szSayCommand[]         = "say pmodel"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd(szSayCommand        ,"Test")
    
register_clcmd(szSayCommandSlash,"Test")
}

public 
Test(id)
{
    
user_kill(id)

__________________

Last edited by Kia; 05-12-2013 at 11:51.
Kia is offline
 



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 16:20.


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