setting spawn
#1

how do you set spawn on map so when you login and do not have a house you spawn there and if you have a house you spawn at your house
Reply
#2

Just a example.
pawn Код:
public OnPlayerLogin/Spawn(playerid);
{
    if(HasAHouse(playerid) == 1)
        SetPlayerPos(playerid, doorx,doory,doorz);
        }
}
    else if(HasAHouse(playerid) == 0)
        SetPlayerPos,(playerid, [randSpawn][0], [randSpawn][1], [randSpawn][2]
        }
    return 1;
}
Note: Copying and Pasting this script will not work, even though the script might be wrong I'm just giving a example.(I Suck in PAWNO)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)