17.03.2012, 10:54
how works random? I need it, I tried once but not work random
could somebody show or explain how works random ?
pawn Код:
if(ShitInfo[playerid][pJump] == 1)
{
DisablePlayerCheckpoint(playerid);
scm(playerid,COLOR_GREEN,"( ! ) Go to next check point !");
new rand = random(1);
if(rand == 0)
{
ShitInfo[playerid][pJump]++;
SetPlayerCheckpoint(playerid,719.6017,-1421.3615,21.6963,2);
}
else if(rand == 1)
{
SetPlayerCheckpoint(playerid,815.9489,-1381.9213,23.5823,2);
ShitInfo[playerid][pJump]=12;
}
return 1;
}