08.10.2015, 01:04
(
Последний раз редактировалось xClown; 08.10.2015 в 17:16.
)
Hi, i put this code when player connect.
SpawnPlayer and Camera doesn't work. I use SpawnPlayer to hide spawn buttons, and Camera for new positions.
PHP код:
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"LoadUser_%s", .bExtra = true, .extra = playerid);
SpawnPlayer(playerid);
SetPlayerCameraPos(playerid, 1057.1735, 1990.9702, -7.6063);
SetPlayerCameraLookAt(playerid, 7107.6938, -9996.5226, -2.9223);
ShowPlayerDialog(...
}
else
{
SpawnPlayer(playerid);
SetPlayerCameraPos(playerid, 1990.9702, -1760.3556, 46.0171);
SetPlayerCameraLookAt(playerid, 7107.6938, -1758.8937, 18.0859);
for(new i = 0; i < 10; i++) TextDrawShowForPlayer(playerid, RegisterLoginTD[i]);
SelectTextDraw(playerid, 0x800000FF);
return 1;
}