Liberty Unleashed

Scripting => Script Help => Topic started by: Mido_Pop on January 08, 2013, 03:15:25 pm

Title: Help :'(
Post by: Mido_Pop on January 08, 2013, 03:15:25 pm
how to make function like this ?

function onPlayerExitServer( player )
{
     
     return 1;
}

or

function onPlayerDisconnect( player )
{
     
     return 1;
}
Title: Re: Help :'(
Post by: Mido_Pop on January 08, 2013, 04:40:45 pm
yes Svenko thanks
Title: Re: Help :'(
Post by: Mido_Pop on January 10, 2013, 04:57:42 pm
Hey Help  ;D
 
 how to make Radar blips for all vehicles i need for 9 Vehicles only . but how ?
Title: Re: Help :'(
Post by: IdkanYavuk X on January 11, 2013, 06:09:07 pm
Hey Help  ;D
 
 how to make Radar blips for all vehicles i need for 9 Vehicles only . but how ?

just configure a vehicle variable, and add the blip, just like this:
Code: [Select]
function onScriptLoad()
{
local vehicle1 = CreateVehicle( VEH_INFERNUS, Vector( 226, 7263, 723 ), 90, -1, -1 ), vehicle2 = CreateVehicle( VEH_INFERNUS, Vector( 226, 7263, 723 ), 90, -1, -1 ), vehicle3 = CreateVehicle( VEH_INFERNUS, Vector( 226, 7263, 723 ), 90, -1, -1 ); //And so on
CreateBlip( BLIP_8BALL, vehicle1.Pos );
CreateBlip( BLIP_8BALL, vehicle2.Pos );
CreateBlip( BLIP_8BALL, vehicle3.Pos ); //And so on
}
Title: Re: Help :'(
Post by: Mido_Pop on January 11, 2013, 09:23:14 pm
ok thanks  :-\
Title: Re: Help :'(
Post by: Mido_Pop on January 11, 2013, 09:58:29 pm
what is the command to make this >>

(http://img825.imageshack.us/img825/6215/43792052.png)
Title: Re: Help :'(
Post by: Shadow. on January 12, 2013, 08:48:15 am
Nice screenie from my server, teehee.

Anyway, here you go:

Code: [Select]
jak <- GUIWindow( VectorScreen( 0.32*ScreenWidth, 0.12*ScreenHeight ), ScreenSize( 240.0, 105 ), "LOL" );
jak.Colour = Colour( 0, 0, 0 );
jak.Titlebar = false;
jak.Transparent = false;

hbar <- GUIProgressBar( VectorScreen( 0, 0 ), ScreenSize( 192.5, 20 ) );
hbar.StartColour = Colour(255,255,255);
hbar.EndColour = Colour(0,0,0);
hbar.MaxValue = 100;
                jak.AddChild( hbar );

Here jak is the window and hbar the bar. Pretty simple..
Title: Re: Help :'(
Post by: Mido_Pop on January 12, 2013, 09:04:18 am
xD  :D :D :D  thanks
Title: Re: Help :'(
Post by: Shadow. on January 12, 2013, 10:41:10 am
Beware, it's clientside, so you need to add client="1" for this script (in Scripts.xml).
Title: Re: Help :'(
Post by: Mido_Pop on January 18, 2013, 07:00:28 pm
i know it's so easy xD .  :o

function onScriptLoad( )
{
  SetHUDItemEnabled( HUD_WANTED, false );
}

 :o :o
Title: Re: Help :'(
Post by: IdkanYavuk X on January 18, 2013, 08:12:20 pm
i know it's so easy xD .  :o

function onScriptLoad( )
{
  SetHUDItemEnabled( HUD_WANTED, false );
}

 :o :o


You cant use that in onScriptLoad... try on onClientSpawn
Title: Re: Help :'(
Post by: GuenosNoLife on January 18, 2013, 08:20:43 pm
i know it's so easy xD .  :o

function onScriptLoad( )
{
  SetHUDItemEnabled( HUD_WANTED, false );
}

 :o :o


You cant use that in onScriptLoad... try on onClientSpawn
No, it's work with onScriptLoad ;)
Thank's for this script HUD HIDDEN <3
Title: Re: Help :'(
Post by: IdkanYavuk X on January 18, 2013, 08:36:17 pm
i know it's so easy xD .  :o

function onScriptLoad( )
{
  SetHUDItemEnabled( HUD_WANTED, false );
}

 :o :o


You cant use that in onScriptLoad... try on onClientSpawn
No, it's work with onScriptLoad ;)
Thank's for this script HUD HIDDEN <3

Didn't know that, thanks for the advice!