SA-MP Forums Archive
[Help] - 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: [Help] (/showthread.php?tid=541199)



[Help] - astanalol00 - 10.10.2014

Hello All
i making simple checkpoints
PHP код:
CMD:buycar(playeridparams[])
{
 
CreateDynamicCP(-1454.8569,1489.1010,7.10163.0, -1, -1, -1100.0); //1st
 
CreateDynamicCP(-1428.7382,1490.0945,7.10163.0, -1, -1, -1100.0); //2
 
CreateDynamicCP(-1402.7249,1486.1351,7.10163.0, -1, -1, -1100.0); // 3
 
CreateDynamicCP(-1382.1962,1480.3761,8.56253.0, -1, -1, -1100.0);// 4
 
CreateDynamicCP(-1376.8267,1492.7152,11.20313.0, -1, -1, -1100.0);// 5
 
CreateDynamicCP(-1390.7821,1483.1436,1.86723.0, -1, -1, -1100.0);// 6
 
CreateDynamicCP(-1434.3047,1483.0374,1.86723.0, -1, -1, -1100.0);//7
 
CreateDynamicCP(-1381.9700,1498.3158,8.56253.0, -1, -1, -1100.0);//8
 
return 1;

i Want Know How To Make Race Checkpoints this pos
Quote:

-1447.2351,1502.1000,1.7366

after he is take this Race Checkpoints Will Be Showing The Checkpoints in CMD From 1 To 8
After He is Done Take All From 1 To 8 Checkpoints After Take One Checkpoints Disapear it
After Done 1 To 8 Checkpoints Showing To Player Race Checkpoints This Pos
Quote:

-2392.9497,2312.1875,-0.1095

+ Take This Money
Quote:

GivePlayerMoney(playerid, 40000+random(120000));




Re: [Help] - HY - 10.10.2014

pawn Код:
SetPlayerRaceCheckpoint(playerid,3,-1447.2351,1502.1000,1.736610.0);

pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 40000+random(120000));
    return 1;
}



Re: [Help] - AnnaSB - 10.10.2014

Your first step will be:
Код:
CreateDynamicRaceCP(-1447.2351,1502.1000,1.7366);
Then on Callback:
Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
      buycar(playerid);
}
and sorry for the rest cause I cannot understand your way of writing English.
Hope I helped.


Re: [Help] - astanalol00 - 10.10.2014

Removed


Re: [Help] - astanalol00 - 10.10.2014

Help Please


Re: [Help] - astanalol00 - 10.10.2014

only i want making it
When Player Enter This Checkpoints Race After Take it Will Be Showing The Checkpoints 1 To 8
after Player Take All Checkpoints 1 To 8 Will Showing Checkpoints Race End To Take Money This For Race Checkpoints Road The Money Pos
Quote:

-2392.9497,2312.1875,-0.1095

And This For Frist One To After Take it Will Showing The Checkpoints 1 to 8 this pos
Quote:

-1447.2351,1502.1000,1.7366