Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - [KM]Helathien

#1
Support / How to fix this Radio error?
Aug 10, 2018, 11:37 AM


Some players are getting this error, and the radio is playing. Any fix?
#2
Using Keys to turn on vehicle Lights!

Hi there!
This is a easy tutorial, if you find any problems or bugs in this snippet feel free to PM me or Reply in the comments below :D.

First of all paste this onScriptLoad()
function onScriptLoad ( )
{
L <- BindKey(true, 0x4C, 0, 0);
print( "BindKey Loaded. Key by [KM]Helathien." )
}

After That Find This Function In your server function onKeyDown( player, key )
And Paste This here:
function onKeyDown( player, key )
{
if ( key == L )
{
if ( !player.Vehicle ) return 0;
else
{
local v = player.Vehicle;
if ( v.Lights == true )
{
v.Lights = false;
MessagePlayer( "[#00ff00][LIGHTS] [#ffffff]Vehicle lights turned off." , player )
}
else if ( v.Lights == false )
{
v.Lights = true;
MessagePlayer( "[#00ff00][LIGHTS] [#ffffff]Vehicle lights turned on." , player )
}
}
}
}

And there you go!
Just sit in any vehicle and press the "L" key and the lights will turn on!
Hope it helps.
Feel free to PM.
This idea came from this script request: https://forum.vc-mp.org/?topic=5273.0
#3
Snippet Showroom / /flip Command for cars.
Jun 09, 2018, 09:50 AM
/FLIP COMMAND.

I have not been able to find this command on the forum , so I thought I'd paste it here for help.
Credits: [KM]Helathien.

Code:
Add this in onPlayerCommand( player, cmd, text)

if ( cmd == "flip" )
{
if ( !player.Vehicle ) MessagePlayer( "[#ff1111]Error: [#ffffff]You need to be in a Vehicle to use this command." , player )
else
{
local veh = player.Vehicle;
veh.Rotation = Quaternion( 0.0, 0.0, 0.0, 0.0 );
MessagePlayer( "[#00ff00][INFO] [#ffffff]You have flipped your car." , player )
}
}

Hope it helps :D
#4
AFK SYSTEM

This Is A AFK ( away from keyboard ) script by me. Its Actually just a command that Shows The Players Who Are AFK.
I Dont Know If Anyone has Posted It Before, But It Has Been Made By Me.

else if ( ( cmd == "afk" ) || ( cmd == "afks" ) )
   {
      local plr, b;
      for( local i = 0; i <= GetMaxPlayers(); i++ )
      {
       plr = FindPlayer( i );
  if ( ( plr ) && ( plr.Away ) )
       {
      if ( b ) b = b + ", " + plr.Name + ""
      else b = plr.Name + ""
       }
      }
      MessagePlayer( "[#33cc00]Information: [#ffffff]Displaying List Of People Who Are Afk" , player ); 
      if ( b ) MessagePlayer( "[#33cc00]Information: [#FFFFFF]: " + b + "" , player );         
      else MessagePlayer( "[#009900][AFK][#ffffff] None " , player );
       
}


Guys I Didnt Knew Where To Actually Post This Topic In. SO Plz Forgive me if i posted it in the Wrong Board.

Hope It Helps.

For Those Of U who dont know what afk is, it is when you minimize your game( i am talking about this command) it shows people who have minimized their games.
Note: According To This People Who Are Not Spawned ( Still On Spawn Screen ) are also considered Away.
#5
Clan Tags:

Trainees Tag: Kbt

Rookies Tag: Kbr

Full Member and Above Tag:Kb.

List Of Clan Members Shown Below

Founders:
Helathien

Members:
BlackHawk
kingabbas
numair