News A server update was released on July 20. Server patch notes and downloads are here. Additionally, a client update was released on the same day. Client patch notes are here.
Spawning with Num. 0 Key

amkae

  • Newbie
  • Posts: 38
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

  • Jr. Member
  • Why so rude,be more rude
  • Posts: 93
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
  • Posts: 359
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

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

amkae

  • Newbie
  • Posts: 38
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.