The online racing simulator
Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
how do u (if possible) remove the fisrt X number of letters from a string so like Chat_tatata would be just tatata
Fire_optikz001
S2 licensed
Quote from Krayy :What would be handy here is a GLScript function to log a line of text to a file in the ./logs directory. So if it was called like:

<?php 
Log
("report""Fireoptikz did something naughty");
?>

then there would now be a line written to the file ./logs/report.log with the text:
1/15/2010 11:07:48 PM -> Fireoptikz did something naughty

(Customised with your own text format etc) This owuld alos be good for DEBUG information to a debug.log file, recording log ins, disconnects etc.

How about it Gai?

i have something like this but this would be alot better ...
Fire_optikz001
S2 licensed
Quote from Bass-Driver :it normally looks like this and not like the previous post
i dont know how to explane it in english sry

report by: bass-driver (15/01/2010 - 11:32:57 pm) d
report by: bass-driver (15/01/2010 - 11:33:06 pm) fgfg
report by: bass-driver (15/01/2010 - 11:33:12 pm) vdvv
report by: bass-driver (15/01/2010 - 11:33:59 pm) vdvv
report by: bass-driver (15/01/2010 - 11:34:04 pm) vdvv
report by: bass-driver (15/01/2010 - 11:34:02 pm) vdvv
report by: bass-driver (15/01/2010 - 11:34:06 pm) vdvv
report by: bass-driver (15/01/2010 - 11:34:10 pm) vdvv

and about the files that was not a question thats what i made.

if the reported user already exist then write the reportreason in the same file.
if it the reported user not exist then made a new file incl the reportreason.

yes so does mine
Fire_optikz001
S2 licensed
Quote from Bass-Driver :k ill see the reasonmessage now but the time is still wrong
btw its create 1 file for each reported user and not for example 10 files for 1 reported user

command !report Bass-Driver vdvv

report by: bass-driver (15/01/2010 - 11:33:12 pm) vdvv
report by: bass-driver (15/01/2010 - 11:33:59 pm) vdvv
report by: bass-driver (15/01/2010 - 11:34:04 pm) vdvv
report by: bass-driver (15/01/2010 - 11:32:57 pm) d
report by: bass-driver (15/01/2010 - 11:34:06 pm) vdvv
report by: bass-driver (15/01/2010 - 11:33:06 pm) fgfg
report by: bass-driver (15/01/2010 - 11:34:02 pm) vdvv
report by: bass-driver (15/01/2010 - 11:34:01 pm) vdvv

how is time wrong?

also why would u want more then 1 file?
Fire_optikz001
S2 licensed
Quote from Bass-Driver :thx it works now

but now i have another lil problem
i have add some of this code to the !report command and that works to but it doesnt save it well

reported by==>> bass-driver (friday 15 january 2010 - 10:41:44 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:44:40 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:43:18 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:39 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:48 pm)
how are u
i'm testing lapper
reported by==>> bass-driver (friday 15 january 2010 - 10:41:46 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:42:54 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:54 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:42 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:38 pm)
hello
reported by==>> bass-driver (friday 15 january 2010 - 10:45:14 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:41 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:43:06 pm)
reported by==>> bass-driver (friday 15 january 2010 - 10:41:47 pm)


The dates are in the wrong way and it doenst write the reason(!report User Reason) on some points

u want reason?

if so here is my report code


<?php 
                
CASE "!report":
                                IF( 
$argv != "" THEN
                    $idxSpace 
indexOf$argv" ");
                    IF( 
$idxSpace != -THEN
                        $user 
subStr$argv,0,$idxSpace );
                        
$argv trimsubStr$argv,$idxSpace ) );
   
MoveUserToGroup"report" $user,"Report by " $userName " (" GetLapperVar("ShortDate") . " - " GetLapperVar("LongTime") . ") " $argv );
   
UserGroupToFile"report" $user"./../user/" $TFD "/report/" $user ".txt" );
        
privMsg"Report Has Been Submited" );
         
$RMSG "Reported: " $user " | What For: " $argv;
                    
#Report ("tempadmin");
                    
ELSE
                        
privMsg"Command needs more parameters" );
                    ENDIF
                ENDIF
   BREAK;
?>

EXAMPLE !report TEST TEST


report by fire_optikz001 (15/01 - 4:21:55 pm) test

Fire_optikz001
S2 licensed
Quote from Gai-Luron :Fixed, download version b. Change only LFSLapper.exe


Gai-Luron

Thanks now i can do the thing with my clan tag protection
Fire_optikz001
S2 licensed

Event OnConnect() # Player event

UserGroupFromFile( "Drivers" . $userName, "./User/Drivers/" . $userName . ".txt" );

IF( UserInGroup( "Drivers" . $userName , $userName ) == 1 )
THEN
MoveUserToGroup( "Drivers" . $userName,"Joined the server @ ====>>> (" . GetLapperVar("LongDate") . " - " . GetLapperVar("LongTime") . ")" );
SaveGroupToFile( "Drivers" . $userName, "./User/Drivers/" . $userName . ".txt" );
privMsg( "^7>Welcome Back" . GetCurrentPlayerVar( "Nickname" ));
privMsg( "^7>Enjoy your stay!!");
ELSE
MoveUserToGroup( "Drivers" . $userName,"Joined the server for the 1st time @ ====>>> (" . GetLapperVar("LongDate") . " - " . GetLapperVar("LongTime") . ")" );
MoveUserToGroup( "Drivers" . $userName,$userName );
SaveGroupToFile( "Drivers" . $userName, "./User/Drivers/" . $userName . ".txt" );
privMsg( "^7>Welcome in our server!!" );
privMsg( "^7>Enjoy your stay" );
cmdLFS("/msg ^7>" . GetCurrentPlayerVar("Nickname") . " ^7Is a new Driver in this server");
ENDIF

there
Fire_optikz001
S2 licensed
Quote from Gai-Luron :Ok, i forgot one thing, i fix it soon

k
Fire_optikz001
S2 licensed
Quote from Gai-Luron :

5. Add new LFSLapper function StripLFSColor to remove all color and lang char in string
$var = StripLFSColor("^7toto^8tata");


this cuts off the first and last letter of what it strips :/
Fire_optikz001
S2 licensed
Quote from Bass-Driver :

Event OnConnect() # Player event

UserGroupFromFile( "Drivers", "./User/Drivers/" . $userName . ".txt" );

IF( UserInGroup( "Drivers" , $userName ) == 1 )
THEN
MoveUserToGroup( "Drivers" . $userName,"Joined the server @ ====>>> (" . GetLapperVar("LongDate") . " - " . GetLapperVar("LongTime") . ")" );
privMsg( "^7>Welcome Back" . GetCurrentPlayerVar( "Nickname" ));
privMsg( "^7>Enjoy your stay!!");
ELSE
MoveUserToGroup( "Drivers" . $userName,"Joined the server for the 1st time @ ====>>> (" . GetLapperVar("LongDate") . " - " . GetLapperVar("LongTime") . ")" );
SaveGroupToFile( "Drivers" . $userName, "./User/Drivers/" . $userName . ".txt" );
privMsg( "^7>Welcome in our server!!" );
privMsg( "^7>Enjoy your stay" );
cmdLFS("/msg ^7>" . GetCurrentPlayerVar("Nickname") . " ^7Is a new Driver in this server");
ENDIF


Fixed
Fire_optikz001
S2 licensed
Quote from Mikjen :Cool, that works,

But... the insim window only shows pit status

still? i will check
Fire_optikz001
S2 licensed
Quote from Shadowww :ofc u did, you, American's don't have anything but 20 years old DSL do you.

lmao i have dsl.... my freind has cable.... and FIOS
Fire_optikz001
S2 licensed
Quote from Krayy :NickNameStripped

is there a way to strip colors from anything?

like Strip( GetCurrentPlayerVar("NickName") );
Fire_optikz001
S2 licensed
Quote from Mikjen :Ok updated to 9.23 now

and still access denied lol

ok fixed it try now
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from Shadowww :http://www.lattelecom.lv/majai ... nets/majas_komplekts_VIP/$100/month for 500mbit, $20/month for 100mbitDSL? :|

It's fiber optic.

:o knew i looked at it wrong
Fire_optikz001
S2 licensed
Quote from Gai-Luron :Showed Where?

cmd window

see window for what i mean
Fire_optikz001
S2 licensed
Fire_optikz001
S2 licensed
no i mean like lets say my servers name is ^0[^4^0C] ^7Cruise Server it would be cool if it showed the actual colors instead of ^0[^4^0C] ^7Cruise Server
Fire_optikz001
S2 licensed
next snow we have here i will post a pic
Fire_optikz001
S2 licensed
TouchScreen

G25 or G27?
Fire_optikz001
S2 licensed
when u have a starting point u can do it with ais u program /ai to a f key and press it 3 times 3 ais will appear
Fire_optikz001
S2 licensed
not sure looks like were gonna be closing down soon imo
Fire_optikz001
S2 licensed
hmm ill look
Fire_optikz001
S2 licensed
Quote from Mikjen :Yes, in admin.txt and superuser as well

hmm what version u have u have .922?
Fire_optikz001
S2 licensed
Quote from Gai-Luron :Yes also conts.lpr

You can add color in const but you need to concat them. Can't and don't want parse a string

Const RED "^7";

"This is " . RED . " red color"

i ment in the exe is possible to do that with the lfs colors?
like if u write line my server name it would show ^0[^4S^0C] ^7Cruise Server would be cool if u could make it appear as

i used gray instead of white so u could see

[[COLOR=Blue]S[COLOR=Black]C] [COLOR=Gray]Cruise Server
[COLOR=Black][/COLOR]
[/COLOR][/COLOR][/COLOR]

Last edited by Fire_optikz001, .
FGED GREDG RDFGDR GSFDG