22.11.2009, 09:37
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
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;
}