Need some help
#1

Hey guys,

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!

PLz let me know and help me!
Reply
#2

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(minmax)
{
    new 
rand random(max-min)+min;
    return 
rand;
}
SetTimerEx("RandomSpawnTimer"5000true"d"playerid);
forward RandomSpawnTimer(playerid);
public 
RandomSpawnTimer(playerid)
{
    new 
temp;
    
temp randomEx(15);
    switch(
temp)
    {
        case 
1SetPlayerPos(playeridxyz);
        case 
2SetPlayerPos(playeridxyz);
        case 
3SetPlayerPos(playeridxyz);
        case 
4SetPlayerPos(playeridxyz);
        case 
5SetPlayerPos(playeridxyz);
        
// Ect ect
    
}
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)