Raised This Month: $ Target: $400
 0% 

Read text from .cfg file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 05-07-2014 , 07:00   Read text from .cfg file
Reply With Quote #1

How can I make a function to read text from a .cfg file?

EXAMPLE
The plugin must use a file called 'steamids.cfg'
And what I would like to know, how and what function will read the .cfg and put into "if(equal(steamid,.." func

PHP Code:
public bomb_planted(id)
{
    new 
name[33]
    
get_user_name(idname32)

    new 
steamid[33]
    
get_user_authid(idsteamid33)

    new 
players[32], pnum
    get_players
(playerspnum"ceh""TERRORIST")
    for(new 
TT 0TT pnumTT++)
    {
        if(
equal(steamid"READ ALL STEAM IDS FROM A .CFG FILE"))
        {    
            
ColorChat(players[TT], GREEN"%s ^1bla bla"name)
        }
         else
        
ColorChat(players[TT], GREEN"%s ^1bla bla"name)
    }    

So all stemids that are in the cfg file will be used
CHE4TER is offline
 



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 09:38.


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