Raised This Month: $ Target: $400
 0% 

Simple but It's not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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