The online racing simulator
Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
Quote from AMB :He said to me he would teach me, but he'd have to charge.

naa naa naaa naaaaaa.

do his milk shakes bring all the guys to the yard? o.o
Fire_optikz001
S2 licensed
Quote from zeugnimod :

you should write a tutorial on how to be a forum whore
Fire_optikz001
S2 licensed
Quote from nssf :aaah oke my gramatica is not good even not in my own lange:P but why there is a lfsmods website than? is it not a official website from lfs or what?

its not official ... and not supposed to be talked about ... read the forum rules
Fire_optikz001
S2 licensed
Quote from AMB :ROFL!

Wooo wooo oooo wooo woooo

@SCA to qualify for a forum whore you need to be over 9000!!! posts.

only one who qualifys for that who posted here would be zeugnimod :P
Fire_optikz001
S2 licensed
Quote from nssf :lol i dont understand what you mean does it mean its not allowd:P?

he was joking you cause you spelled message wrong :P ... but moding is not to be talked about on LFSForums
Fire_optikz001
S2 licensed
Quote from Krayy :This will sub whole strings as well as chars.

made a small update to your code


<?php 
Sub MultiStrReplace
$String$Find$Replace )
$Find splitToArray$Find,"|" );
$Replace splitToArray$Replace,"|" );
IF(
arrayCount($Find) == arrayCount($Replace) ) THEN
    $DONE 
FALSE;
    
$NewString $String;
    WHILE ( 
$DONE == FALSE )
        FOR (
$i=0;$i<=arrayCount($Find);$i=$i+1)
        
$FindIndex indexOf($NewString$Find[$i]);
        IF ( 
$FindIndex == -)
        
THEN
            $DONE 
TRUE;
        ELSE
            
$Split1 subStr$NewString ,0$FindIndex );
            
$SplitMid strLen($Split1) + strLen($Find[$i]);
            
$Split2 subStr$NewString ,$SplitMidstrLen($NewString) - $SplitMid );
            
$NewString $Split1 $Replace[$i] . $Split2;
        ENDIF
      ENDFOR
    ENDWHILE
    return (
$NewString);
ELSE
    return (
"^1ERROR: ^7Could Not Convert String");
ENDIF    
EndSub 
?>


Call:

<?php 
 MultiStrReplace
"Bob is a Cat Jack is also a Cat""Cat|Bob""Dog|Tom" )

# or another example

MultiStrReplace"Bob is a Cat Jack is also a Cat"" Jack is also a Cat|Bob|Cat""!|That Guy|Legend" )
?>

Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
is there any way to make lfslapper catch some one typing /ai?
Fire_optikz001
S2 licensed
Quote from GreyBull [CHA] :The record is still hold by (The Stig)'s legendary London City Cruisers... 4 leaders for 1 regular member

ye ... we have a semi big community (that and we are all in different time zones) and 1 or 2 of the leaders are semi inactive
Fire_optikz001
S2 licensed
i wanted a point of view on this... i was thinking about adding varying prices on cars and food if you like the idea should they change every
  1. 30 min
  2. Hour
  3. 3 hours
  4. 6 hours
  5. 12 hours
  6. 24 hours
  7. Insim boot
Fire_optikz001
S2 licensed
Quote from Foqs :you need MOARRRR team leaders

o.o no thanks :P
Fire_optikz001
S2 licensed
Quote from gcashiel :thanks goes to everyone who helped set it up!

*cough* :P not including the fact that i had to re upload the insim like 5 times 0
Fire_optikz001
S2 licensed
hey guys i will have an update out tomorrow or Wednesday... which will include
  1. Layout Template
  2. Removed existing parking lots
  3. Added 2 new parking lots
  4. NEW CHASE SYSTEM
    • Chase command will be !chase
    • When officer types in !chase it will pop up a list of nearby drivers (click able or !chase [user number])
  5. Other small bug fixes
Fire_optikz001
S2 licensed
i tried to make a function that replaces one string for another but it only takes the first letter of the $find string


<?php 
Sub StrReplace
$String$Find$Replace )
$SplitString splitToArray$String ,$Find );

$i 0;            
$total arrayCount$SplitString );

    WHILE (
$i <= $total)
$NewString $NewString $SplitString[$i] . $Replace;
        
$i $i 1;
    ENDWHILE

  return (
$NewString); 
EndSub
?>


Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from Krayy :What do you mean rules?

like
  • Dont Spam
  • say sorry when you crash
ect :P
Fire_optikz001
S2 licensed
how would it look if i added rules to the !help? :P
Fire_optikz001
S2 licensed
Quote from Krayy :It's only for the fact that I put all the help into one file. In theory I should practice what I preach and put the help into multiple files, but I wanted to include this as an example of how to do a self contained item list rather than a multi file one. More fool me hey?

ahh ok understood
Fire_optikz001
S2 licensed
Quote from Krayy :I've updated the help.lpr with the cruise help, and also rewritten part of it so that it makes it easier to add new help items. Also, if you want to change the oreder that the tabs show up in, just copy & paste the Globalvar lines for the help items until you get them the way you want e.g

Go from this:


<?php 
    
# Just reorder these lines to change order of help item tabs
    
GlobalVar $HLP_GENERAL$HLP_GENERAL $HLP_MAX$HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "General,";
    
GlobalVar $HLP_STATS;   $HLP_STATS $HLP_MAX;   $HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "Stats,";
    
GlobalVar $HLP_ADMIN;   $HLP_ADMIN $HLP_MAX;   $HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "Admin,";
    
GlobalVar $HLP_CRUISE;  $HLP_CRUISE $HLP_MAX;  $HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "Cruise,";
?>

To This:

<?php 
    
# Just reorder these lines to change order of help item tabs
    
GlobalVar $HLP_CRUISE;  $HLP_CRUISE $HLP_MAX;  $HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "Cruise,";
     
GlobalVar $HLP_STATS;   $HLP_STATS $HLP_MAX;   $HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "Stats,";
    
GlobalVar $HLP_ADMIN;   $HLP_ADMIN $HLP_MAX;   $HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "Admin,";
    
GlobalVar $HLP_GENERAL$HLP_GENERAL $HLP_MAX$HLP_MAX $HLP_MAX  1$GUI_HELP_ITEMS $GUI_HELP_ITEMS "General,";
 
?>

to put cruise help at the top and General at the bottom

or i could just do

<?php 
 GlobalVar $HLP_CRUISE
;   $HLP_CRUISE "Cruise"
    
$GUI_HELP_ITEMS "Cruise,"$GUI_HELP_ITEMS;  
?>

oh i see... will include that in next ver.

but i added the stuff i said to my own cruise.lpr so people who don't have cruise wont see it
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Ok guys... 10.7.1.6 is up

LFSLapper 6.0.1.1 IS REQUIRED

Fixes:
  1. UserIsAdmin
  2. bug in cars for !show
  3. other small fixes
Added:
  1. New Help (under Krayy's Multi-tab help[!help])
http://t3charmy.net/LFSLapper-Cruise/
Fire_optikz001
S2 licensed
Hey Krayy ... i found a way to include my help in your !help command... no more confusing people

Added to my cruise script:


<?php 
    GlobalVar $HLP_CRUISE
;   $HLP_CRUISE "Cruise";
    
$GUI_HELP_ITEMS $GUI_HELP_ITEMS.",Cruise"
?>

and


<?php 
      gui_help_contents_Cruise 
"^2General Player commands"
    
"%nl%^3!cruiseh ^8- Shows this help"
    
"%nl%^3!km  ^8- Show current amount of km you have"
    
"%nl%^3!cash  ^8- Show current amount of cash you have"
    
"%nl%^3!cars  ^8- Show the current cars you own"
    
"%nl%^3!show  ^8- Shows Everyone Your Stats"
    
"%nl%^3!buy [car]  ^8- Buy the listed car"
    
"%nl%^3!sell [car]  ^8- Sell the listed car"
    
"%nl%^3!pitlane  ^8- Sends you to pitlane"
    
"%nl%^3!price [car]  ^8- Display price of the listed car"
    
"%nl%^3!send [amount] [user]  ^8- sends the listed amount of cash to the listed user"
    
"%nl%^3!pitsafe  ^8- Displays whether your safe to pit"
    
"%nl%^3!officer  ^8- Go on/off duty"
    
"%nl%"
    
"%nl%^2Police Commands"
    
"%nl%^7!chase [user]"
    
"%nl%^6!unchase"
    
"%nl%^7!Fine [amount]"
    
"%nl%^6!clock [user]";
?>

it works ... this is really great function
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
We got new Team Leader

Current Leaders:
  1. Me
  2. Kei
  3. GuberX
  4. AlpineJay
  5. Wataboo
Fire_optikz001
S2 licensed
Quote from Krayy :The gui_admin_member.lpr scrip defines a UserIsAdmin function that overrides any existing function of that name, so not really (at least from my perspective )

kk ... reason i was asking is your other !ma thing had user is admin also ... but it didn't work ... i'll be including these scripts in my cruise releases
Fire_optikz001
S2 licensed
is it a bad thing that when i updated to your new member script that user is admin worked?
Fire_optikz001
S2 licensed
I must say Nice Work!
Fire_optikz001
S2 licensed
Quote from Fire_optikz001 :i have 6.0.1.0 and UserIsAdmin( $userName ) no longer works o.o

also you cant use {0:0.00%} in the languages for some reason
Fire_optikz001
S2 licensed
there is this but it will not work correctly for the cruise addon but it will work for !sc

http://www.lfs-lapper.org/down ... r/LFSLapper6.000betab.zip
FGED GREDG RDFGDR GSFDG