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 , 03:13   models & Glow
Reply With Quote #1

help !! how to check if someone is using the model i have listed ?

like if someone is using the model that i listed something will happen.

SAS
JILL
BOXER

2nd question is how to check if a user glow is blue ?

Last edited by zombieplague; 11-19-2010 at 09:11.
zombieplague is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-19-2010 , 03:52   Re: models
Reply With Quote #2

Loop through all players and check their model names to those given names?
__________________
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-19-2010 , 06:17   Re: models
Reply With Quote #3

some codes please. i searched can't find similar.
zombieplague is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-19-2010 , 12:30   Re: models & Glow
Reply With Quote #4

Loop

cs_get_user_model

equal? LoL
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-19-2010 , 12:44   Re: models & Glow
Reply With Quote #5

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
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-19-2010 , 23:09   Re: models & Glow
Reply With Quote #6

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 #7

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 #8

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 #9

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
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-20-2010 , 09:06   Re: models & Glow
Reply With Quote #10

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
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