Raised This Month: $32 Target: $400
 8% 

Read models in .txt


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 05-01-2012 , 17:33   Read models in .txt
Reply With Quote #1

I must make my script read information from a. Txt.

example:

A. Txt models.txt was named in a folder and it would be listed SourceMod model by model:

models/player/slow/aliendrone_v3/slow_alien.mdl;oldmodel
models/player/slow/aliendrone_v3/slow_alien_hs.mdl;hs
models/player/slow/aliendrone_v3/slow_alien_head.mdl;head
player.mdl ...; oldmodel
...

oldmodel for default model
hs for headless model
head for head model

And everything was being set up, out instead to be done in the script, as below:

PHP Code:
        if (StrEqual(oldmodel"models/player/slow/aliendrone_v3/slow_alien.mdl"false))
        {
            
bodymodel "models/player/slow/aliendrone_v3/slow_alien_hs.mdl";
            
headmodel "models/player/slow/aliendrone_v3/slow_alien_head.mdl";
        } 
With support for putting more than one model.

How can I do this?

Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 05-01-2012 at 17:35.
rodrigo286 is offline
 


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 01:50.


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