Using race checkpoints [streamer] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Using race checkpoints [streamer] (
/showthread.php?tid=581588)
Using race checkpoints [streamer] -
Rissam - 14.07.2015
As u know this is the streamer function
PHP код:
CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
It creates two race checkpoints one after other. I want to create a system that if player enters in the
next checkpoint a value should be returned to him different than when he enters the first race cp. Can any one help me with. It means returning player different values on entering the two race checkpoints.
Sorry if u don't understand my English.
Re: Using race checkpoints [streamer] -
JawsPlus - 14.07.2015
try to use
PHP код:
new test
test = CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Re: Using race checkpoints [streamer] -
Rissam - 14.07.2015
Quote:
Originally Posted by JawsPlus
try to use
PHP код:
new test
test = CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
|
I am already using it in such way and by the way did u understood what I meant?
Re: Using race checkpoints [streamer] -
Roberto80 - 14.07.2015
Mmm i think,"Float:nextx,Float:nexty,Float:nextz" to create next race checkpoint,mmm idk
Re: Using race checkpoints [streamer] -
Rissam - 15.07.2015
Look below
PHP код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
case first: // if player enters the first race cp.
{
}
case next: // if player enters the next race cp.
{
}
return 1;
}
If anything like above exists?