how to house spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to house spawn (
/showthread.php?tid=423700)
how to house spawn -
sscarface - 18.03.2013
how to make if player quit the game in house and when he back so player forced spawn in house. but if player quite /q game in house so.
Re: how to house spawn -
kamzaf - 18.03.2013
https://sampwiki.blast.hk/wiki/SetSpawnInfo
first you first have to save the coordinates using any saving method then use that above.
Re: how to house spawn -
sscarface - 18.03.2013
Quote:
Originally Posted by kamzaf
|
so i need go to everyy house and save corrds? lol, Its for player spawn without interior. i want spawn in house.
Re: how to house spawn -
NuggaN - 18.03.2013
OnPlayerSpawn ask it
PHP код:
switch(GetPVarInt(playerid,"House"))
{
case 0:{} //No House
case 1:{SetPlayerPos(playerid,x,y,z);SetPlayerInterior(playerid,X);} //First House
case 2: // and so on
//case 3: //Third house..
Re: how to house spawn -
kamzaf - 19.03.2013
Quote:
Originally Posted by sscarface
so i need go to everyy house and save corrds? lol, Its for player spawn without interior. i want spawn in house.
|
Yes of course, otherwise how else would the server know where to spawn the player if you dont save the coordinates of the house you want teh player in after he leaves.
Re: how to house spawn -
mastermax7777 - 19.03.2013
or just spawn him at the pickup coords... its easier and u only have to do it once with a for loop