Im trying to make a fs that makes players spawn on more then one place. I just cant get it to work... Can someone please make a script for me? I will repp so much and im willing to even pay via pp!
What you could do is setup a timer and start it when the player connects. The timer would finish and trigger a function which would then pick a random spawn point, example;
PHP код:
stock randomEx(min, max)
{
new rand = random(max-min)+min;
return rand;
}
SetTimerEx("RandomSpawnTimer", 5000, true, "d", playerid);
forward RandomSpawnTimer(playerid);
public RandomSpawnTimer(playerid)
{
new temp;
temp = randomEx(1, 5);
switch(temp)
{
case 1: SetPlayerPos(playerid, x, y, z);
case 2: SetPlayerPos(playerid, x, y, z);
case 3: SetPlayerPos(playerid, x, y, z);
case 4: SetPlayerPos(playerid, x, y, z);
case 5: SetPlayerPos(playerid, x, y, z);
// Ect ect
}
return 1;
}