21.04.2011, 13:26
When i connect to my server i spawn in lv but i want in other place.How to do that?
SetPlayerPos(playerid, poshere);
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, x, y ,z);//Instead of x y z post your coordinates.
return 1;
}
new Float:Spawns[3][4] =
{
{//Your coordinates here},
{//Your coordinates here},
{//Your coordinates here}
};
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, Spawns[rand][0], Spawns[rand][1], Spawns[rand][2], Spawns[rand][3]);
return 1;
}