Random Checkpoint - 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: Random Checkpoint (
/showthread.php?tid=572339)
Random Checkpoint -
Genmetal - 27.04.2015
Ok, so how to make when they type /work they will go to load point and when entered the checkpoint, server give random checkpoint to unloading the loads?.. i already make but the checkpoint is bugged
Please help, thx
Re: Random Checkpoint -
Genmetal - 27.04.2015
Bump!
Re: Random Checkpoint -
Jimmy0wns - 27.04.2015
This means that you'll have to create quite a big script (if you're going advanced). You're probably better off making it on your own.
Re: Random Checkpoint -
fuckingcruse - 28.04.2015
Something like this ..
Код:
new Float:RandomWorkCps[][] =
{
//all your cps
};
and at this place
Код:
If(IsPlayerInRangeOfPoint(playerid, //cp,//length[3 is good])
{
//here write like this
RandomWork; //This is for stock
}
Код:
stock RandomWork(playerid)
{
new rand = random(sizeof(RandomWorkCps);
SetPlayerCheckpoint(playerid, RandomWorkCps[Random][0], RandomWorkCps[Random][1], RandomWorkCps[Random][2]);
//Othercodes if you want to send any msg , etc!!
}
Good day Thanks
-FuckingCruse Thumbs up