AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   my amx model plugin (https://forums.alliedmods.net/showthread.php?t=47122)

John6000 11-10-2006 14:19

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


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
       
}


John6000 11-11-2006 06:37

Re: my amx model plugin
 
comeon : / does anyone know how to use arguments ... . . .

[ --<-@ ] Black Rose 11-11-2006 07:14

Re: my amx model plugin
 
Looks ok. Debug it.
client_print(id, print_chat, "namearg = %s", namearg)

XxAvalanchexX 11-11-2006 21:31

Re: my amx model plugin
 
What mod is this for?

SuB-Zer0 11-14-2006 10:50

Re: my amx model plugin
 
Stargate TC (www.stargatetc.com)

XxAvalanchexX 11-14-2006 15:00

Re: my amx model plugin
 
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.


All times are GMT -4. The time now is 06:55.

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