Raised This Month: $ Target: $400
 0% 

models & Glow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-19-2010 , 23:09   Re: models & Glow
Reply With Quote #1

Quote:
Originally Posted by SaM.ThE.MaN View Post
its pretty easy ... , ... why do u need codes , loop ... easy to do that , cs_get_user_model ... common -.- , and the glow thing ... search for set_user_rendering ... it is best so search it in functions
i understand it pretty easy for you.

cs_get_user_model == SAS.mdl ?

and i asked for how to get the user glow not set them.

@Exolent so i have to use xs ?
@meta i will try.
zombieplague is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-20-2010 , 00:16   Re: models & Glow
Reply With Quote #2

Quote:
Originally Posted by zombieplague View Post
i understand it pretty easy for you.

cs_get_user_model == SAS.mdl ?

and i asked for how to get the user glow not set them.

@Exolent so i have to use xs ?
@meta i will try.
cs_get_user_model() gives a string representation of the player's model.

You have to use equali() to compare the string.

Code:
new szModel[ 32 ]; cs_get_user_model( iPlayer, szModel, charsmax( szModel ) ); if( equal( szModel, "model name") ) {    // player has "model name" model }

You don't need xs to check that color.
It really just does this:
Code:
if( vecGlowColors[ 0 ] == 0.0 && vecGlowColors[ 1 ] == 0.0 && vecGlowColors[ 2 ] == 255.0 ) {     // blue glow }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-20-2010 , 00:26   Re: models & Glow
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
cs_get_user_model() gives a string representation of the player's model.

You have to use equali() to compare the string.

Code:
new szModel[ 32 ];
cs_get_user_model( iPlayer, szModel, charsmax( szModel ) );

if( equal( szModel, "model name") ) { // player has "model name" model }



You don't need xs to check that color.
It really just does this:
Code:
if( vecGlowColors[ 0 ] == 0.0 && vecGlowColors[ 1 ] == 0.0 && vecGlowColors[ 2 ] == 255.0 ) { // blue glow }
so what if it has more than 1 model listed ? like SAS, JILL, BOXER ?

just put without the .mdl ?

another question if i have a model menu.

when someone chooses sas then how to make it next round then change into sas rather than changing to sas right away.

Last edited by zombieplague; 11-20-2010 at 00:43.
zombieplague is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-20-2010 , 01:39   Re: models & Glow
Reply With Quote #4

You're asking questions that can easily be answered if you knew the basics of programming.

Use else if() or the OR operator to check multiple models.

To change model on new round, use 2 global variables that save the new model name as well as saying the player needs to set a new model.
Then on new round, check if players have a new model, then change it if they do.

It's not that hard to make if you know how to code.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-20-2010 , 02:10   Re: models & Glow
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
You're asking questions that can easily be answered if you knew the basics of programming.

Use else if() or the OR operator to check multiple models.

To change model on new round, use 2 global variables that save the new model name as well as saying the player needs to set a new model.
Then on new round, check if players have a new model, then change it if they do.

It's not that hard to make if you know how to code.
i don't know much about codes..

i don't know how this function is done. i need help with this.
PHP Code:
enum_:modelname 
{
       
sas,
       
jill,
       
boxer
}

new const 
models[modelname][] = 
{
       
model/player/sas/sas.mdl,
       
model/player/jill/jill.mdl,
       
model/player/boxer/boxer.mdl
}

new 
szModel32 ];
cs_get_user_modeliPlayerszModelcharsmaxszModel ) );

if( 
equalszModel"models[modelname]") )
 { 
zombieplague is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-20-2010 , 02:59   Re: models & Glow
Reply With Quote #6

You are missing quotes in the global variable listing the models.
Also, you don't need the whole path, just the single name (eg. "sas").

You need to loop through the whole array and check.

Code:
for( new i = 0; i < /*array size*/; i++ ) {     // index array with [i] for the current array element }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-20-2010 , 03:27   Re: models & Glow
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
You are missing quotes in the global variable listing the models.
Also, you don't need the whole path, just the single name (eg. "sas").

You need to loop through the whole array and check.

Code:
for( new i = 0; i < /*array size*/; i++ ) { // index array with [i] for the current array element }
i still don't understand.
zombieplague is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-20-2010 , 09:06   Re: models & Glow
Reply With Quote #8

Quote:
Originally Posted by zombieplague View Post
i understand it pretty easy for you.

cs_get_user_model == SAS.mdl ?

and i asked for how to get the user glow not set them.

@Exolent so i have to use xs ?
@meta i will try.
dude .. basics of scripting ...
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-20-2010 , 11:26   Re: models & Glow
Reply With Quote #9

Quote:
Originally Posted by SaM.ThE.MaN View Post
dude .. basics of scripting ...
ok mr dude.
zombieplague is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-20-2010 , 12:27   Re: models & Glow
Reply With Quote #10

Quote:
Originally Posted by zombieplague View Post
ok mr dude.
dude ...
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN 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:16.


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