Author Topic: Help me with the race  (Read 3389 times)

[EG]~[S]aha~

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-9
  • Liberty Unleashed!
    • View Profile
Help me with the race
« on: April 24, 2013, 06:33:38 am »
Here's a script race with 2 areas like me to do more together ? well, that sphere ran away from me
function onPlayerCommand( pPlayer, szCommand, szText )
{
   if ( szCommand == "race" )
   {
      CreateSphere( Vector pos, 215.9, -921.5, 26.0 , Colour( 0, 0, 255 ) );
   }
   
   return 1;
}
function onPlayerEnterSphere( player, sphere )
{
sphere.Pos = Vector( 359.4, -920.6,  36.0 )

return 1;
}

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
Re: Help me with the race
« Reply #1 on: April 24, 2013, 06:36:25 am »
I dont remember so well, but it is like this
Code: [Select]
sph <- "";
function onPlayerCommand( pPlayer, szCommand, szText )
{
   if ( szCommand == "race" )
   {
      sph = CreateSphere( Vector pos, 215.9, -921.5, 26.0 , Colour( 0, 0, 255 ) );
   }
   
   return 1;
}
function onPlayerEnterSphere( player, sphere )
{
sph.Pos = Vector( 359.4, -920.6,  36.0 )

return 1;
}

[EG]~[S]aha~

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-9
  • Liberty Unleashed!
    • View Profile
Re: Help me with the race
« Reply #2 on: April 24, 2013, 10:20:37 am »
no that's not it :(

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Help me with the race
« Reply #3 on: April 24, 2013, 10:46:53 pm »
Man try This >

function onPlayerCommand( pPlayer, szCommand, szText )
{
   if ( szCommand == "race" )
   {
      CreateSphere( Vector( 215.9, -921.5,  26.0 ), Colour( 0, 0, 255 ) );
   }
   
   return 1;
}

function onPlayerEnterSphere( player, sphere )
{
 sphere.Pos = Vector( 359.4, -920.6,  36.0 );

return 1;
}



[EG]~[S]aha~

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-9
  • Liberty Unleashed!
    • View Profile
Re: Help me with the race
« Reply #4 on: April 25, 2013, 08:13:19 am »
don't get me wrong I don't need to fix the script I need to create one more spheres of how to do this ?

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Help me with the race
« Reply #5 on: April 25, 2013, 09:59:08 am »
don't get me wrong I don't need to fix the script I need to create one more spheres of how to do this ?

!!! What Do You Mean ?????????



[EG]~[S]aha~

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-9
  • Liberty Unleashed!
    • View Profile
Re: Help me with the race
« Reply #6 on: April 25, 2013, 11:41:04 am »
so when you drive on the scope it disappeared and then another appeared in another place

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
Re: Help me with the race
« Reply #7 on: April 25, 2013, 06:12:29 pm »
just local each sphere
Code: [Select]
sph1 <- CreateSphere( Vector pos, 215.9, -921.5, 26.0 , Colour( 0, 0, 255 ) );
sph2 <- CreateSphere( Vector pos, 234, -573, 26.0 , Colour( 0, 0, 255 ) );
sph3 <- CreateSphere( Vector pos, 231, -128, 26.0 , Colour( 0, 0, 255 ) );
sph4 <- CreateSphere( Vector pos, 641, -186, 26.0 , Colour( 0, 0, 255 ) );
sph5 <- CreateSphere( Vector pos, 236, -374, 26.0 , Colour( 0, 0, 255 ) );

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Help me with the race
« Reply #8 on: April 25, 2013, 07:32:12 pm »
so when you drive on the scope it disappeared and then another appeared in another place

hhhhhhhh OH My God Man You Mean You Need The Race Script  :o

Sorry, Try To Do It By Your Self.



 

© Liberty Unleashed Team.