Raised This Month: $ Target: $400
 0% 

my amx model plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
John6000
Junior Member
Join Date: Nov 2006
Old 11-10-2006 , 14:19   my amx model plugin
Reply With Quote #1

I'ts not reconising the paramaters from amx_model <paramaters here> can you help? The coding in green is what i think is wrong


Thanks!

Code:
/* Plugin generated by AMXX-Studio
*
*"models/player/oneill/oneill.mdl"
*
 */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Model changer"
#define VERSION "0.1"
#define AUTHOR "<REMOVED>@gmail.com"



public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("amx_model","plugin_model") 
    // Add your code here...
}

public plugin_model(id,level,cid) {
    if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
    
    new namearg[32]
    read_argv(1,namearg,31)
    set_user_info(id,"model",namearg)

     client_print(id,print_chat,"*AMXX* Your model should be changed now") 
    // Add your code here...
    
    return PLUGIN_HANDLED
        
}

Last edited by John6000; 11-10-2006 at 14:34.
John6000 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 06:55.


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