AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   need help (https://forums.alliedmods.net/showthread.php?t=184017)

bazhenov93 04-29-2012 19:04

need help
 
done

fysiks 04-29-2012 19:14

Re: need help
 
One thing that I see wrong is this: cs_set_user_model(id,"resetModel")

Also, you don't need to return anything from resetModel() and you shouldn't check if !is_user_connected() since you are actually looking for the case where the user IS connected.

PHP Code:

public resetModel(id)

    if( 
is_user_connected(id) )
    {
        
cs_set_user_model(idoldmodel[id])
    }


oldmodel[] is never assigned anywhere.

bazhenov93 04-29-2012 19:28

Re: need help
 
It was working and now when I type /mymodel - the menu is not opened O_O

Also i think that i'm doing it all wrong.. with this code the model mdl_n is for all players

but I want it only for my steamid

fysiks 04-30-2012 03:26

Re: need help
 
Just use "Player Models" by Connor.

P.S. iSteamStr[] is empty.

bazhenov93 04-30-2012 04:06

Re: need help
 
This was a good plugin, where I can disable/enable my model :((

fysiks 04-30-2012 04:36

Re: need help
 
Quote:

Originally Posted by bazhenov93 (Post 1699139)
This was is a good plugin

Fixed.

Quote:

Originally Posted by bazhenov93 (Post 1699139)
where I can disable/enable my model :((

You could just add that feature in I guess. That way you know you are starting with working code.

bazhenov93 04-30-2012 06:12

Re: need help
 
Nooooo.. if you type "/mymodel" (that work only for your steamid) a menu is opened, where you can choose "enable/disable" the model..

When you connect to your server, the model is auto enabled on you..

That's what I want :P

I already tried many ways, and can't do it ATM..


All times are GMT -4. The time now is 07:54.

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