Raised This Month: $ Target: $400
 0% 

my amx model plugin


Post New Thread Reply   
 
Thread Tools Display Modes
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
John6000
Junior Member
Join Date: Nov 2006
Old 11-11-2006 , 06:37   Re: my amx model plugin
Reply With Quote #2

comeon : / does anyone know how to use arguments ... . . .
John6000 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-11-2006 , 07:14   Re: my amx model plugin
Reply With Quote #3

Looks ok. Debug it.
client_print(id, print_chat, "namearg = %s", namearg)
[ --<-@ ] Black Rose is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-11-2006 , 21:31   Re: my amx model plugin
Reply With Quote #4

What mod is this for?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
SuB-Zer0
Junior Member
Join Date: Mar 2006
Old 11-14-2006 , 10:50   Re: my amx model plugin
Reply With Quote #5

Stargate TC (www.stargatetc.com)
SuB-Zer0 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-14-2006 , 15:00   Re: my amx model plugin
Reply With Quote #6

Is the gameplay FFA or team-based? If it is the latter, you probably can't change their model just by setting user info. But I've found that forcing them to run the "model" command to change their model usually works better than setting their info directly, for FFA mods.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 06:55.


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