[Ajuda] Checkpoint aleatorio - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Checkpoint aleatorio (
/showthread.php?tid=510665)
Checkpoint aleatorio -
billygod - 02.05.2014
Ai galera ajuda ai eu queria criar uma funзгo que de 10 em 10 mim cria-se um check point e quem chega-se nele ganhava 100 reais, atй ai tudo bem, mas eu n sei como ser randomico entre 10 checkpoints diferentes
Re: Checkpoint aleatorio -
Input - 02.05.2014
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/Random
Re: Checkpoint aleatorio -
lKoDlFuLLaNNo - 02.05.2014
com a funзoes do Input e criando um settimer com os milesegundos de 10 em 10 min.
https://sampwiki.blast.hk/wiki/SetTimer
Re: Checkpoint aleatorio -
Axll - 02.05.2014
pawn Код:
enum enum_point
{
Float:x,
Float:y
Float:z
}
new point[][enum_point] = {
{0.0, 0.0, 0.0}, //0
{0.0, 0.0, 0.0}, //1
{0.0, 0.0, 0.0} //2
}
stock SetarNovoPoint(playerid) {
new newp = random(2);
return SetPlayerCheckpoint(playerid, point[newp][x], point[newp][x], point[newp][x], 5.0);
}