12.08.2009, 06:25
Quote:
|
Originally Posted by SkyWinder
its on the top see
Код:
public OnPlayerDisconnect(playerid, reason)
{
OnPlayerUpdateAccount(playerid);
new Float:u,Float:v,Float:w;
GetPlayerPos(playerid, u, v, w);
AccountInfo[playerid][SpawnX] = u;
AccountInfo[playerid][SpawnY] = v;
AccountInfo[playerid][SpawnZ] = w;
AccountInfo[playerid][SpawnVW] = GetPlayerVirtualWorld(playerid);
AccountInfo[playerid][SpawnInt] = GetPlayerInterior(playerid);
new Float:angle;
GetPlayerFacingAngle(playerid, angle);
AccountInfo[playerid][SpawnAngle] = angle;
return 1;
}
|
Код:
public OnPlayerDisconnect(playerid, reason)
{
new Float:u,Float:v,Float:w;
GetPlayerPos(playerid, u, v, w);
AccountInfo[playerid][SpawnX] = u;
AccountInfo[playerid][SpawnY] = v;
AccountInfo[playerid][SpawnZ] = w;
AccountInfo[playerid][SpawnVW] = GetPlayerVirtualWorld(playerid);
AccountInfo[playerid][SpawnInt] = GetPlayerInterior(playerid);
new Float:angle;
GetPlayerFacingAngle(playerid, angle);
AccountInfo[playerid][SpawnAngle] = angle;
OnPlayerUpdateAccount(playerid);
return 1;
}

