[Ajuda] Checkpoint aleatorio
#1

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

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/Random
Reply
#3

com a funзoes do Input e criando um settimer com os milesegundos de 10 em 10 min.

https://sampwiki.blast.hk/wiki/SetTimer
Reply
#4

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)