SA-MP Forums Archive
trying to create race - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: trying to create race (/showthread.php?tid=246562)



trying to create race - tanush - 04.04.2011

on top i have
pawn Код:
new drift;
ongamemodeinit
pawn Код:
drift = CreateDynamicRaceCP(0,2323.2761,1403.8103,42.8203,2327.2761,1403.8103,42.8203,3);
When player types /join in race it shows ERROR: You are not in an race checkpoint!
pawn Код:
CMD:join(playerid, params[])
{
    if(IsPlayerInDynamicRaceCP(playerid,drift))
    {
        SendClientMessage(playerid,0xFF9900AA,"The Race has started, go to the next checkpoint!");
    }
        else return SendClientMessage(playerid,0xFF0000FF,"ERROR: You are not in an race checkpoint!");
    return 1;
}



Re: trying to create race - Backwardsman97 - 04.04.2011

Could be a problem with whatever system you have for the dynamic race cp. You could always just code a system yourself. It would be a lot easier to work with because you'd know the in's and out's of it.