last interior help - 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: last interior help (
/showthread.php?tid=354336)
last interior help -
PaulDinam - 26.06.2012
how do i make to save the last interior of a player when he logout?
Re: last interior help -
ScriptWriter - 26.06.2012
Use GetPlayerInterior to get Player interior, and when him spawn next time, load that interior use SetPlayerInterior.
Re: last interior help -
Jason` - 26.06.2012
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
SetPVarInt(playerid, "lastInterior", oldinteriorid);
return 1;
}
Re: last interior help -
PaulDinam - 26.06.2012
thankyou