SetPlayerRaceCheckpoint question
#1

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, Floatize)

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, Floatize)

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, Floatize);

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
Reply
#2

Why would you again set the co-ords back to the old one?

Set the co-ords to complete new ones.
Reply
#3

ah thnx , imma try

EDIT: doesnt works, now it skips checkpoints...
Reply
#4

under the OnPlayerCommandText callback add this:
PHP код:
if(strcmp(cmdtext"/test"true))
{
     
SetPlayerRaceCheckpoint(playerid0, -1714.9847411027.79748545.036315, -1725.589111926.63208024.7175825.0);
     
//and then the other ones//
     
return 1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)