Author Topic: i need help with bind key  (Read 1114 times)

[RU]Kewun

  • Full Member
  • ***
  • Posts: 126
  • Karma: +11/-21
  • C.R.C Marshal
    • View Profile
i need help with bind key
« on: January 02, 2015, 12:47:56 pm »
function onScriptLoad()
{
     BindKey( 'H', BINDTYPE_DOWN, "player.RemoveFromVehicle", 123 );
     
     return 1;
}
 
function player.RemoveFromVehicle( somenumber )
{
     Message( "You got bailed out of car " + somenumber );
        player.RemoveFromVehicle();
}
 
i need a bindkey to bail out player of car and this is wrong ? how i can fix this
Fear the wrath of god!


[RU]Kewun

  • Full Member
  • ***
  • Posts: 126
  • Karma: +11/-21
  • C.R.C Marshal
    • View Profile
Re: i need help with bind key
« Reply #1 on: January 02, 2015, 04:28:51 pm »
It doesnt work... doesnt bail me out of car just message
Fear the wrath of god!


Pipec

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Re: i need help with bind key
« Reply #2 on: January 07, 2015, 08:59:20 pm »
Because you forgot http://liberty-unleashed.co.uk/LUWiki/Squirrel/Server/Functions/Scripts/RegisterRemoteFunc
( Just add this to any Server Side script)


Anything else will be ignored by the server (by security reasons).

 

© Liberty Unleashed Team.