18.03.2013, 23:20
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.
https://sampwiki.blast.hk/wiki/SetSpawnInfo
first you first have to save the coordinates using any saving method then use that above. |
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..