how to make race any vehicle
#8

To set this up
PHP код:
//add this when you start an event or enter a certain area
CreateDynamicRaceCP(typeFloat:xFloat:yFloat:zFloat:nextxFloat:nextyFloat:nextzFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_RACE_CP_SDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1)// use this if you want to add more when you enter the checkpoint then add another one of this on another area to set a checkpoint or finish the race when you enter the checkpoint
SetPlayerRaceCheckpoint(playeridtypeFloat:xFloat:yFloat:zFloat:nextxFloat:nextyFloat:nextzFloat:size// use this when you just want a one round race like drag races or something like that. 
now to our callbacks
PHP код:
public OnPlayerEnterDynamicRaceCP(playeridSTREAMER_TAG_RACE_CP checkpointid)
{
//add your code here
//use this callback when you are using the CreateDynamicRaceCP
}

public 
OnPlayerEnterRaceCheckpoint(playerid)//basic one
{
//add code here
//you can use this callback when you are using SetPlayerRaceCheckpoint

search for the type of checkpoints for both dynamic and non-dynamic and know what their usage.

When you make one checkpoint and made it work, you'll get the hang of scripting it and it will be easy.
Reply


Messages In This Thread
how to make race any vehicle - by crukk11 - 16.02.2017, 14:45
Re: how to make race any vehicle - by JesterlJoker - 16.02.2017, 14:47
Re: how to make race any vehicle - by crukk11 - 16.02.2017, 14:51
Re: how to make race any vehicle - by JesterlJoker - 16.02.2017, 14:53
Re: how to make race any vehicle - by crukk11 - 16.02.2017, 15:01
Re: how to make race any vehicle - by JesterlJoker - 16.02.2017, 15:07
Re: how to make race any vehicle - by crukk11 - 16.02.2017, 15:12
Re: how to make race any vehicle - by JesterlJoker - 16.02.2017, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)