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

Nice tutorial.

Why not:

pawn Code:
new Float:RandomSpawns[][3] =//The 3 here shows that there will be 3 pos. x, y and z
{
    {2756.1196,690.8884,10.8984},// You can edit these for the positions you want.
    {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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)