[Tutorial] How to make something that changes randomally!
#5

Quote:
Originally Posted by Tee
View Post
Nice tutorial.

Why not:

pawn Code:
new Float:RandomSpawns[][3] =
{
    {2756.1196,690.8884,10.8984},
    {2755.4023,683.8808,10.8984},
    {2756.1243,668.4799,10.8984}
};
pawn Code:
public OnPlayerSpawn(playerid)
{
    new rand = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[rand][0], RandomSpawns[rand][1], RandomSpawns[rand][2]);
    return 1;
}
yee nice one!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)