AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Simple but It's not working (https://forums.alliedmods.net/showthread.php?t=144506)

killergirl 12-04-2010 20:08

Simple but It's not working
 
I don't know why this plugin won't works.

PHP Code:

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

#define uuck "models/uuck.mdl"

public plugin_init(){
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_clcmd("say /asd","asd")
}

public 
asd(id){
    
cs_set_user_model(id,uuck)



hleV 12-04-2010 20:14

Re: Simple but It's not working
 
Put uuck.mdl in models/player/uuck folder.
Code:
#include <amxmodx> #include <cstrike>   public plugin_precache()         precache_model("models/player/uuck/uuck.mdl");   public plugin_init()         register_clcmd("say /asd", "asd");   public asd(client)         cs_set_user_model(client, "uuck");

killergirl 12-05-2010 05:23

Re: Simple but It's not working
 
PHP Code:

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_precache(){
    
precache_model("models/player/uuck/santa.mdl");
}

public 
plugin_init(){
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_clcmd("say /asd","asd")
}

public 
asd(client){
    
cs_set_user_model(client,"santa")
    
client_print(clientprint_chat"Done")


Same, the plugin won't work. The model was downloaded, than nothing.

How did I check if am I a santa? I suicide with the console 'kill' or I waited for explosion of the bomb. Nothing happens.
Is that correct to check with this method upper?

I've tried to check with this form, same :cry::

PHP Code:

#include <amxmodx>
#include <cstrike>

#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_precache(){
    
precache_model("models/player/uuck/santa.mdl");
}

public 
plugin_init(){
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_clcmd("say /asd","asd")
    
register_clcmd("say /check","check")

}

public 
asd(client){
    
cs_set_user_model(client,"santa")
    
client_print(clientprint_chat"Done")
}

public 
check(client){
   new 
usermodel[31]

   
cs_get_user_model(clientusermodel32)

   if(!(
containi(usermodel"santa"))){
   
client_print(clientprint_chat"Already Santa! *uuuuuuuuck!")
}
else{
   
client_print(clientprint_chat"Friday! No you are not a Santa!")
}



hleV 12-05-2010 06:26

Re: Simple but It's not working
 
It must be models/player/santa/santa.mdl.

fysiks 12-05-2010 14:02

Re: Simple but It's not working
 
The folder and model name must be the same.

killergirl 12-05-2010 16:19

Re: Simple but It's not working
 
Quote:

Originally Posted by fysiks (Post 1363942)
The folder and model name must be the same.

L O L ! Why?

Yes, now it works! Thank you for support!

fysiks 12-05-2010 16:54

Re: Simple but It's not working
 
Quote:

Originally Posted by killergirl (Post 1364053)
L O L ! Why?

Ask valve.


All times are GMT -4. The time now is 11:25.

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