11.01.2011, 13:13
Why not put a camera at point?
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerCameraPos(playerid,-2558.06250000,1500.37207031,19.00000000); SetPlayerCameraLookAt(playerid,-2605.20727539,1569.63366699,72.13813782); SetPlayerPos(playerid,-2545.34423828,1474.64233398,0.00000000); TogglePlayerSpectating(playerid, 1); IsLogged[playerid] = 0; new file[128], string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),"/Korisnici/%s.ini",name); if(!fexist(file)) { format(string, sizeof string, "Dobrodosao na pocetak registracije\n\n%s\nVas racun nije registrovan\n\nMolimo upisite zeljenu lozinku:", name); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Registracija", string, "Register", " "); } if(fexist(file)) { format(string, sizeof string, "Dobrodosao\n\n%s\nTvoj racun je pronadjen\n\nMolimo upisite vasu lozinku da udjete u server:", name); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Login", string, "Login", " "); } return 1; }