how to make race any vehicle -
crukk11 - 16.02.2017
how to make race any vehicle
Re: how to make race any vehicle -
JesterlJoker - 16.02.2017
Quote:
Originally Posted by crukk11
how to make race any vehicle
|
Please elaborate what you want?
No one would give you an answer with what you just said
Re: how to make race any vehicle -
crukk11 - 16.02.2017
i meant how to get any filterscripts race or something
Re: how to make race any vehicle -
JesterlJoker - 16.02.2017
You could search it on ******.
or on the sa-mp filterscript section
Re: how to make race any vehicle -
crukk11 - 16.02.2017
yes. i search everything all and my gamemode not support
sorry for my bad english
Re: how to make race any vehicle -
JesterlJoker - 16.02.2017
You could just make by using
PHP код:
SetPlayerRaceCheckpoint(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size) // the basic one
CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_RACE_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1) //and the advance one
I basically don't have an idea how to use this but it's what the basic is.
Then you can use this
PHP код:
OnPlayerEnterRaceCheckpoint(playerid)//basic one
OnPlayerEnterDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid)// advance one
like to reset the timer or add time when a player enter checkpoint. this is for dynamic checkpoints
Re: how to make race any vehicle -
crukk11 - 16.02.2017
how to set up this code
Re: how to make race any vehicle -
JesterlJoker - 16.02.2017
To set this up
PHP код:
//add this when you start an event or enter a certain area
CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_RACE_CP_SD, STREAMER_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(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float: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(playerid, STREAMER_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.