Raised This Month: $ Target: $400
 0% 

need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-29-2012 , 19:04   need help
Reply With Quote #1

done

Last edited by bazhenov93; 01-01-2013 at 20:07.
bazhenov93 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-29-2012 , 19:14   Re: need help
Reply With Quote #2

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.
__________________
fysiks is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-29-2012 , 19:28   Re: need help
Reply With Quote #3

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

Last edited by bazhenov93; 01-01-2013 at 20:08.
bazhenov93 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-30-2012 , 03:26   Re: need help
Reply With Quote #4

Just use "Player Models" by Connor.

P.S. iSteamStr[] is empty.
__________________

Last edited by fysiks; 04-30-2012 at 03:27.
fysiks is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-30-2012 , 04:06   Re: need help
Reply With Quote #5

This was a good plugin, where I can disable/enable my model (
bazhenov93 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-30-2012 , 04:36   Re: need help
Reply With Quote #6

Quote:
Originally Posted by bazhenov93 View Post
This was is a good plugin
Fixed.

Quote:
Originally Posted by bazhenov93 View Post
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.
__________________
fysiks is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-30-2012 , 06:12   Re: need help
Reply With Quote #7

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

I already tried many ways, and can't do it ATM..
bazhenov93 is offline
Reply


Thread Tools
Display Modes

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 07:54.


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