20.09.2010, 16:53
Yea. Do a code like this (just a simple example):
HousePos is an array, where you store the positions of the house and the angle, that the player should have when spawning at the house.
I hope you understand.
pawn Код:
public OnPlayerBuyHouse(playerid, House)
{
SetSpawnInfo(playerid, GetPlayerTeam(playerid), GetPlayerSkin(playerid), HousePos[House][x], HousePos[House][y], HousePos[House][z], HousePos[House][a], 0, 0, 0, 0, 0, 0);
return 1;
}
I hope you understand.