Spawning with Num. 0 Key

=TRC=Kelvin

  • Newbie
  • Posts: 46
Spawning with Num. 0 Key
«  »
Hey there! can any of you give me a system that makes the player spawn with with NUM. 0 KEY (numpad) like VCMP 0.3z? Thank you.

Ali Ahmed

  • Full Member
  • Why so rude,be more rude
  • Posts: 108
Re: Spawning with Num. 0 Key
« Reply #1,  »Last edited
Here you go
Code: [Select]
function onScriptLoad()
{
    spawnkey <- BindKey(true, 0x30, 0, 0);
}
 
function onKeyDown( player, key )
{
    if( key == spawnkey )
    {
        MessagePlayer( ">> You Just Spawned", player );
player.Spawn();
    }
}


Need some Help pm me.Wanna see my server the name is Pakistan Theft Auto Reloaded

MatheuS

  • Wiki Contributor
  • LBR | Co-Leader & BRL and XS Evolution Scripter
  • Posts: 370
Re: Spawning with Num. 0 Key
« Reply #2,  »
Quote from Ali Ahmed on February 14th, 09:59 AM
Here you go
Code: [Select]
function onScriptLoad()
{
    spawnkey <- BindKey(true, 0x30, 0, 0);
}
 
function onKeyDown( player, key )
{
    if( key == spawnkey )
    {
        MessagePlayer( ">> You Just Spawned", player );
        player.Spawn;
   
}

player.Spawn;
Code: [Select]
player.Spawn();
Youtube Channel: www.youtube.com/TakanaueVCMP
Code: [Select]
if( !sucess ) tryAgain();

Ali Ahmed

  • Full Member
  • Why so rude,be more rude
  • Posts: 108
Need some Help pm me.Wanna see my server the name is Pakistan Theft Auto Reloaded

=TRC=Kelvin

  • Newbie
  • Posts: 46
Re: Spawning with Num. 0 Key
« Reply #4,  »Last edited
It worked with 0 key (up) but not with NUMPAD. I edited it as I wanted it to be and worked, thank you.