SetPlayerRaceCheckpoint question -
niels44 - 14.10.2012
hey everyone,
im busy with making a new GM for my server, and now i have to use OnPlayerEnterRaceCheckpoint callback etc.
but now my question is:
when i do /test it must create the first checkpoint
so
pawn Код:
SetPlayerRaceCheckpoint(playerid, 0, -1714.984741, 1027.797485, 45.036315, -1725.589111, 926.632080, 24.717582, 5.0);
and now then when the player enters the first checkpoint, it should create another new one, but do i have to put in the Coordinates from the previous next one? so i mean, the syntax is:
SetPlayerRaceCheckpoint(playerid, type, Float

, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float

ize)
do i have to set the nextx, nexty and nextz in the firstx, firsty, firstz? or just complete new coords?
so for example:
i have SetPlayerRaceCheckpoint(playerid, type, 1, 2, 3, 4, 5, 6, Float

ize)
do i have to do in the next one:
SetPlayerRaceCheckpoint(playerid, type, 4, 5, 6, 7, 8 ,9, Float:Size)
or
SetPlayerRaceCheckpoint(playerid, type 7, 8, 9 ,10, 11, 12, Float

ize);
the 1,2,3,etc are ment to be coords, but to make it easier to understand wut i mean i changed it to 12345678....
anyways which one do i have to do?
greets niels
i hope you understand me xD if you dont, tell me then ill try to explain it better
Re: SetPlayerRaceCheckpoint question -
Faisal_khan - 14.10.2012
Why would you again set the co-ords back to the old one?
Set the co-ords to complete new ones.
Re: SetPlayerRaceCheckpoint question -
niels44 - 14.10.2012
ah thnx

, imma try
EDIT: doesnt works, now it skips checkpoints...
Re: SetPlayerRaceCheckpoint question -
lorizz - 14.10.2012
under the OnPlayerCommandText callback add this:
PHP код:
if(strcmp(cmdtext, "/test", true))
{
SetPlayerRaceCheckpoint(playerid, 0, -1714.984741, 1027.797485, 45.036315, -1725.589111, 926.632080, 24.717582, 5.0);
//and then the other ones//
return 1;
}