AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   getting a model (https://forums.alliedmods.net/showthread.php?t=10876)

Sp4rt4n 03-03-2005 17:45

getting a model
 
how would you get a clients model?


like, from ts... i want to be able to find a model name as they enter the server, then if they have the specified model kick them

XxAvalanchexX 03-03-2005 18:09

Code:
new model[32]; get_user_info(id,"model",model,31);

Sp4rt4n 03-03-2005 18:20

<3 thanks

Sp4rt4n 03-03-2005 18:28

another quick question

this would be right, correct?

Code:
if (model == xmodel)

or would it be this?

Code:
if (model = xmodel)

TotalNoobScripter 03-03-2005 18:30

no no no alex...

Code:
if (equali(model,"omgwtfbbq") ) {

In TS, i believe "model" does not require the *.mdl extension; however, im not sure if get_user_info would return it with *.mdl.

Twilight Suzuka 03-03-2005 18:39

Quote:

Originally Posted by Sp4rt4n
another quick question

this would be right, correct?

Code:
if (model == xmodel)

or would it be this?

Code:
if (model = xmodel)

Quick lesson:
==: integers
&: bytes
equali: strings
floatcmp: floats

Sp4rt4n 03-03-2005 18:41

so if i understand you guys, it should be

Code:
if (model = xmodel)

correct?

TotalNoobScripter 03-03-2005 18:42

OH EM GEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! RTFMPBTS (Read the f***in mad post by twilight suzuka, also read my post.)

Sp4rt4n 03-03-2005 18:45

erm... OH!

ok, sorry... i thought sazuka was contradicting you...

i get it now... thanks :D

TotalNoobScripter 03-03-2005 18:46

:P


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

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