Position Saver
#1

I made the position save so if he logs out and log in at same position,But if he dies in interior: 0 and dies then he falls through interior ...
Reply
#2

You have to add a 4th variable which drags the interior id on disconnect. Like if you have already Pos[3] make it Pos[4] and on playerdisconnect: Pos[3]=GetPlayerInterior(playerid);

EDIT: I suppose you defined Pos[3] like Float:Pos[3] so the interior id cannot be saved in any of this array's cell since its integer. So create a different variable to save the interior id
Reply
#3

look.if I relog with interior 6 that's good.but if I die in interior 0 or diffrent interior I fall through interior..

PS:OnPlayerDisconnect
PHP код:
new FloatXFloatYFloat:Z;
                    
GetPlayerPos(playeridXYZ);
                    
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
                    
GetPlayerInterior(playerid);
                    
PlayerInfo[playerid][pPos_x] = X;
                    
PlayerInfo[playerid][pPos_y] = Y;
                    
PlayerInfo[playerid][pPos_z] = 
;


EDIT: I don't know how!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)