Raised This Month: $ Target: $400
 0% 

Simple but It's not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 12-04-2010 , 20:08   Simple but It's not working
Reply With Quote #1

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)

killergirl is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-04-2010 , 20:14   Re: Simple but It's not working
Reply With Quote #2

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");
__________________
hleV is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 12-05-2010 , 05:23   Re: Simple but It's not working
Reply With Quote #3

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 :

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!")
}

killergirl is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-05-2010 , 06:26   Re: Simple but It's not working
Reply With Quote #4

It must be models/player/santa/santa.mdl.
__________________
hleV is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-05-2010 , 14:02   Re: Simple but It's not working
Reply With Quote #5

The folder and model name must be the same.
__________________
fysiks is offline
killergirl
Senior Member
Join Date: Jul 2010
Old 12-05-2010 , 16:19   Re: Simple but It's not working
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
The folder and model name must be the same.
L O L ! Why?

Yes, now it works! Thank you for support!
killergirl is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-05-2010 , 16:54   Re: Simple but It's not working
Reply With Quote #7

Quote:
Originally Posted by killergirl View Post
L O L ! Why?
Ask valve.
__________________
fysiks 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 11:25.


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