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(id, name, 32)
new steamid[33]
get_user_authid(id, steamid, 33)
new players[32], pnum
get_players(players, pnum, "ceh", "TERRORIST")
for(new TT = 0; TT < pnum; TT++)
{
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