[Pomoc] camera

Započeo MEMOREX™️, Decembar 22, 2011, 21:10:13 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: Imam komandu /cam za pd. i kad kucam /cam inace nalazi se u INTU a camera je vani . a pogleedajte kakva je slika zamucena. Ako mozda zna neko pomoci
Dio skripte:

if(strcmp(cmd, "/cam", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
           if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
           {
               if(!IsPlayerInRangeOfPoint(playerid, 8,228.9241,77.5544,1005.0391)) // Ovo je u PD Intu
{
   SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Nisi u policiji sobi za osiguranje !");
   return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_DGOLD, "KORISTI: /camera [broj 1 - 7]  (7 = OFF)");
return 1;
}
new number = strval(tmp);
if(number < 1 || number > 7) { SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Ne ispod 1 ili iznad 6 !"); return 1; }
TogglePlayerControllable(playerid, 0);
GetPlayerPos(playerid, Unspec[playerid][Coords][0],Unspec[playerid][Coords][1],Unspec[playerid][Coords][2]);
if(number == 1) { SetPlayerCameraPos(playerid, 1508.2963,-1674.4399,32.9869); SetPlayerCameraLookAt(playerid, 1552.1582,-1675.4523,16.1664); SetPlayerInterior(playerid, 0); } // Ovo je vani i zamuceno
else if(number == 2) { SetPlayerCameraPos(playerid, 246.6778,63.1900,1008.9738); SetPlayerCameraLookAt(playerid, 246.3482,70.3233,1003.6406); SetPlayerInterior(playerid, 6); }// Ovo je u intu a nije zamnuceno
else if(number == 3) { SetPlayerCameraPos(playerid, 1605.6418,-1604.5990,18.9248); SetPlayerCameraLookAt(playerid, 1567.9635,-1632.1117,13.3828); SetPlayerInterior(playerid, 0); }// Ovo je vani i zamuceno
else if(number == 4) { SetPlayerCameraPos(playerid, 1611.4686,-1720.3761,9.7315); SetPlayerCameraLookAt(playerid, 1588.8134,-1698.2560,5.8906); SetPlayerInterior(playerid, 0); }// Ovo je vani i zamuceno
else if(number == 5) { SetPlayerCameraPos(playerid, 246.3771,87.3582,1005.3367); SetPlayerCameraLookAt(playerid, 246.3667,74.2241,1003.6406); SetPlayerInterior(playerid, 6); }// Ovo je u intu a nije zamnuceno
else if(number == 6) { SetPlayerCameraPos(playerid, 251.5165,91.0214,1004.7962); SetPlayerCameraLookAt(playerid, 254.2983,86.1184,1002.4453); SetPlayerInterior(playerid, 6); }// Ovo je u intu a nije zamnuceno
else if(number == 7)
{
   MedicBill[playerid] = 0;
TogglePlayerControllable(playerid, 1);
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], Unspec[playerid][Coords][0], Unspec[playerid][Coords][1], Unspec[playerid][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
}
}
else
{
   SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Nisi Policajac!");
   return 1;
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): Click
Skriptam za pare

Moras tacno unjet ove kordinate
SetPlayerCameraPos(playerid, To su kordinate odakle ce kamera gledat tj gde ce biti postavljena
SetPlayerCameraLookAt(playerid, a ovo su kordinate gde ce kamera gledat Tj. srednja tacka na slici gdje zelita da bude camera


Citat: [GE] Palic poslato Decembar 22, 2011, 21:15:38 POSLE PODNE
Moras tacno unjet ove kordinate
SetPlayerCameraPos(playerid, To su kordinate odakle ce kamera gledat tj gde ce biti postavljena
SetPlayerCameraLookAt(playerid, a ovo su kordinate gde ce kamera gledat Tj. srednja tacka na slici gdje zelita da bude camera
Pa vidis na da sam uveo kordinate i sve. samo mi je mutna slika . a Stavio sam Int na 0 ;) a isto.. Stvarno nezz

EDIT: mozda da je /cam komanda u intu, msm na odredjenom koridinatu a to je u intu, A cam look je vani .
Poslednja Izmena: Decembar 22, 2011, 22:07:12 POSLE PODNE od Memorexâ„¢
Skriptam za pare