08.07.2010, 12:27
I dont know why did i get this problem..
but after i crashed im not stating the the crashed pos..
im starting at the sky of blueberry....
Everything is ok.. i dont know why i get this problem its saved the x,y,z pos. fine.. but after i spawn its automatic change it to blueberry sky..
this is my script
PlayerInfo get float: pPos_x,float:pPos_x,float:pPos_z;
OnPlayerDisconnect:
SetPlayerSpawn:
if(PlayerInfo[playerid][pCrashed] == 1)
OnPlayerUpdate:
And its fucking save the x,y,z position but not spawn good...
thanks for help
but after i crashed im not stating the the crashed pos..
im starting at the sky of blueberry....
Everything is ok.. i dont know why i get this problem its saved the x,y,z pos. fine.. but after i spawn its automatic change it to blueberry sky..
this is my script
PlayerInfo get float: pPos_x,float:pPos_x,float:pPos_z;
OnPlayerDisconnect:
Quote:
if(reason == 0) { PlayerInfo[playerid][pCrashed] = 1; OnPlayerUpdate(playerid); } |
if(PlayerInfo[playerid][pCrashed] == 1)
Code:
{ if(PlayerInfo[playerid][pTut] == 1) { SetPlayerCash(playerid, PlayerInfo[playerid][pCash]); SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pVirWorld]); SafeSetPlayerInterior(playerid,PlayerInfo[playerid][pInt]); new Float:fx,Float:fy,Float:fz; fx = PlayerInfo[playerid][pPos_x]; fy = PlayerInfo[playerid][pPos_y]; fz = PlayerInfo[playerid][pPos_z]+1; SetPlayerPos(playerid, fx,fy,fz); return 1; } }
Code:
if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); PlayerInfo[playerid][pPos_x] = x; PlayerInfo[playerid][pPos_y] = y; PlayerInfo[playerid][pPos_z] = z;
And its fucking save the x,y,z position but not spawn good...
thanks for help