Spawning
#1

When i connect to my server i spawn in lv but i want in other place.How to do that?
Reply
#2

Код:
SetPlayerPos(playerid, poshere);
Reply
#3

If you want like this then it is here.

pawn Код:
public OnPlayerSpawn(playerid)
{
     SetPlayerPos(playerid, x, y ,z);//Instead of x y z post your coordinates.
     return 1;
}
And if you want the player spawns at random places.

Then it is also here.

On Top:-
pawn Код:
new Float:Spawns[3][4] =
{
    {//Your coordinates here},
    {//Your coordinates here},
    {//Your coordinates here}
};
pawn Код:
public OnPlayerSpawn(playerid)
{
     SetPlayerPos(playerid, Spawns[rand][0], Spawns[rand][1], Spawns[rand][2], Spawns[rand][3]);
     return 1;
}
Thanks
Reply
#4

you can set your own spawn points
Reply
#5

Seriously, take a look on wiki SA-MP before you post something!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)