last interior help
#1

how do i make to save the last interior of a player when he logout?
Reply
#2

Use GetPlayerInterior to get Player interior, and when him spawn next time, load that interior use SetPlayerInterior.
Reply
#3

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    SetPVarInt(playerid, "lastInterior", oldinteriorid);
    return 1;
}
Reply
#4

thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)