Spawning problem
#1

Hey guys:

I using a Filterscript. It is a personal car system. If you walk into the checkpoint you get a menu with cars you can buy. when you bought 1 you spawns a few meters away from the checkpoint. When I change the checkpoint coords to the coords I want, walk into it and buy a vehicle, you spawn on a random place ( the begin place of a new.pwn file ).
There where no coords used for the spawn point when you bought a vehicle. HELP!

FS script:

http://pastebin.com/rR58F1rn
Reply
#2

Anyone?
Reply
#3

Which coordinates are you using?
Reply
#4

Could u just get us part of code where it teleports you to random location?
Reply
#5

There are no coords for where it's teleporting to, I'll give you the code for the checkpoints and a part off the menu.

Checkpoints:

PHP код:
beispielcp CreateCheckpoint(-1661.0367,1218.5140,21.1563,0,3,50,true);//THESE WORKS
        
beispielcp2 CreateCheckpoint(-170.7885,2662.2874,63.2410,0,3,50,true);//THIS IS MY COORD, IT DONT WORK
        
beispielcp3 CreateCheckpoint(112.1599,1072.0635,13.6094,0,3,50,true); // THESE WORKS
        
beispielcp4 CreateCheckpoint(2047.8385,-1904.0419,13.5469,0,3,50,true);//THESE WORKS
        
beispielcp5 CreateCheckpoint(531.1484,-1292.9883,17.2422,0,3,50,true);//THESE WORKS
        
beispielcp6 CreateCheckpoint(2200.3103,1392.4890,10.8203,0,3,50,true);//THESE WORKS
        
beispielcp7 CreateCheckpoint(-1956.4684,259.1697,41.0471,0,3,50,true);//THESE WORKS
//      CreateCheckpoint(-1957.8164,256.5306,41.0471,0,4,1000000000000000,true); 
Menu:

PHP код:
  Main();
        CarMenu = CreateMenu("Menu",1,20,120,150,400);
        AddMenuItem(CarMenu,0,"Sell");
        AddMenuItem(CarMenu,0,"Park");
        AddMenuItem(CarMenu,0,"Lock");
        AddMenuItem(CarMenu,0,"Unlock");
        AddMenuItem(CarMenu,0,"Call Car");
        AddMenuItem(CarMenu,0,"Reset Components");
 
 
        Carbuy = CreateMenu("Buy a Car",1,20,120,150,400);
        AddMenuItem(Carbuy,0,"Landstalker       $15000");
        AddMenuItem(Carbuy,0,"Bravura           $15000");
        AddMenuItem(Carbuy,0,"Manana            $25000");
        AddMenuItem(Carbuy,0,"Esperanto         $00000");
        AddMenuItem(Carbuy,0,"Solair        $00000");
        AddMenuItem(Carbuy,0,"Regina        $00000");
        AddMenuItem(Carbuy,0,"Picador       $00000");
        AddMenuItem(Carbuy,0,"Clover        $00000");
 
        Carbuy2 = CreateMenu("Buy a Car",1,20,120,150,400);
        AddMenuItem(Carbuy2,0,"Faggio           $10000");
        AddMenuItem(Carbuy2,0,"Pizzaboy     $00000");
        AddMenuItem(Carbuy2,0,"Sanchez      $10000");
        AddMenuItem(Carbuy2,0,"Quad         $50000");
        AddMenuItem(Carbuy2,0,"BMX          $00000");
        AddMenuItem(Carbuy2,0,"Mountainbike $10000");
        AddMenuItem(Carbuy2,0,"Freeway      $50000");
        AddMenuItem(Carbuy2,0,"FCR-900      $50000");
        AddMenuItem(Carbuy2,0,"NRG-500      $00000");
        AddMenuItem(Carbuy2,0,"PCJ-600      $10000");
        AddMenuItem(Carbuy2,0,"BF-400       $00000");
        AddMenuItem(Carbuy2,0,"Wayfarer     $10000");
 
       
        Carbuy3 = CreateMenu("Buy a Car",1,20,120,150,400);
        AddMenuItem(Carbuy3,0,"BF Injection    $10000");
        AddMenuItem(Carbuy3,0,"Monster Truck   $00000");
        AddMenuItem(Carbuy3,0,"Monster TruckA  $00000");
        AddMenuItem(Carbuy3,0,"Monster TruckB  $00000");
        AddMenuItem(Carbuy3,0,"Patriot         $00000");
        AddMenuItem(Carbuy3,0,"Rancher         $00000");
        AddMenuItem(Carbuy3,0,"SandKing        $00000");
        AddMenuItem(Carbuy3,0,"Mesa            $00000");
        AddMenuItem(Carbuy3,0,"Rancher         $00000");
        AddMenuItem(Carbuy3,0,"Bandito         $00000");
        AddMenuItem(Carbuy3,0,"Huntley         $00000");
       
       
       
       
        Carbuy4 = CreateMenu("Buy a Car",1,20,120,150,400);
        AddMenuItem(Carbuy4,0,"Voodoo           $10000");
        AddMenuItem(Carbuy4,0,"Remington        $10000");
        AddMenuItem(Carbuy4,0,"Slamvan          $10000");
        AddMenuItem(Carbuy4,0,"Blade            $10000");
        AddMenuItem(Carbuy4,0,"Tahoma           $10000");
        AddMenuItem(Carbuy4,0,"Savanna          $10000");
        AddMenuItem(Carbuy4,0,"Broadway         $10000");
        AddMenuItem(Carbuy4,0,"Tornado          $10000");
       
       
        Carbuy5 = CreateMenu("Buy a Car",1,20,120,150,400);
        AddMenuItem(Carbuy5,0,"Stallion         $10000");
        AddMenuItem(Carbuy5,0,"Gleendale        $10000");
        AddMenuItem(Carbuy5,0,"Oceanic          $10000");
        AddMenuItem(Carbuy5,0,"Hermes           $10000");
        AddMenuItem(Carbuy5,0,"Comet            $10000");//<<??
        
AddMenuItem(Carbuy5,0,"Virgo            $10000");
        
AddMenuItem(Carbuy5,0,"Greenwood        $10000");
        
AddMenuItem(Carbuy5,0,"Windsor          $10000");
        
AddMenuItem(Carbuy5,0,"Sunrise          $10000");
        
AddMenuItem(Carbuy5,0,"Primo        $10000");
 
        
Carbuy6 CreateMenu("Buy a Car",1,20,120,150,400);
 
        
AddMenuItem(Carbuy6,0,"Alpha $00000");
        
AddMenuItem(Carbuy6,0,"Blista Compact $00000");
        
AddMenuItem(Carbuy6,0,"Buffalo $00000");
        
AddMenuItem(Carbuy6,0,"Club $00000");
        
AddMenuItem(Carbuy6,0,"Euros $00000");
        
AddMenuItem(Carbuy6,0,"HotringRacer $00000");
        
AddMenuItem(Carbuy6,0,"Sabre $00000");
        
AddMenuItem(Carbuy6,0,"Super GT $00000");
        
AddMenuItem(Carbuy6,0,"ZR-350 $00000");
 
 
        
Carbuy7 CreateMenu("Buy a Car",1,20,120,150,400);
 
        
AddMenuItem(Carbuy7,0,"Flash $00000");
        
AddMenuItem(Carbuy7,0,"Banshee $00000");//
        
AddMenuItem(Carbuy7,0,"Bullet $00000");
        
AddMenuItem(Carbuy7,0,"Cheetah $00000");
        
AddMenuItem(Carbuy7,0,"Infernus $00000");
        
AddMenuItem(Carbuy7,0,"Jester $00000");
        
AddMenuItem(Carbuy7,0,"Phoenix $00000");
        
AddMenuItem(Carbuy7,0,"Turismo $00000");
        
AddMenuItem(Carbuy7,0,"Uranus $00000");
 
 
 
        
SetTimer("OnPlayerLeaveCheckpoint"100001);
Reply
#6

Anyone?
Reply
#7

There isn't any SetPlayerPos which happens after selecting a menu row. Also this code is not so well written (tons of duplication and variables with numbers after them instead of arrays). What exactly happens? After entering your custom checkpoint, menu appears, player selects a car, and after that he spawns... Where exactly? 0.0?
Reply
#8

Yupp, it's not my FS so... I need to add SetPlayerPosition? And for the vehicle?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)