Jump to content

Question

Posted

Buna ziua, SA-MP.ro! Din aceste linii se presupune ca playerul va fi la X,Y,Z cu anim-ul "sit", cu camera "atintita" asupra lui iar controalele blocate.

[pawn]SetSpawnInfo(playerid, 0, 1, 1448.5775,-665.8368,1297.8274, 91.7374, 0, 0, 0, 0, 0, 0 );

SpawnPlayer(playerid);

SetPlayerPos(playerid, 1448.5775,-665.8368,1297.8274);

SetPlayerFacingAngle(playerid, 91.7374);

ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);

SetPlayerCameraPos(playerid, 1445.8765, -667.9634, 1298.8431);

SetPlayerCameraLookAt(playerid, 1446.7035, -666.6038, 1298.5181);

TogglePlayerControllable(playerid, 0);[/pawn]

sa_mp_019.png

Dupa cum vedeti in poza, functioneaza doar ca playerul nu este acolo. Am facut debug si.. Uitati rezultatul:

"[03:06:44] Incoming connection: 127.0.0.1:3152

[03:06:44] [join] Test1 has joined the server (0:127.0.0.1)

[03:06:47] X: 0 ! Y: 0 ! Z: 0 !

[03:06:55] [part] Test1 has left the server (0:1)"

Cand ar trebui sa fie la :"1448.5775,-665.8368,1297.8274".

4 answers to this question

Recommended Posts

Posted

Exact dupa ce-l spawneaza :

[pawn]SetSpawnInfo(playerid, 0, 1, 1448.5775,-665.8368,1297.8274, 91.7374, 0, 0, 0, 0, 0, 0 );

SpawnPlayer(playerid);

SetPlayerPos(playerid, 1448.5775,-665.8368,1297.8274);

SetPlayerFacingAngle(playerid, 91.7374);

ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);

SetPlayerCameraPos(playerid, 1445.8765, -667.9634, 1298.8431);

SetPlayerCameraLookAt(playerid, 1446.7035, -666.6038, 1298.5181);

TogglePlayerControllable(playerid, 0);[/pawn]

Posted

Nu iti merge deoarece ai pus 3 sa zic asa spawnuri...

1:SetSpawnInfo(playerid, 0, 1, 1448.5775,-665.8368,1297.8274, 91.7374, 0, 0, 0, 0, 0, 0 );

2:Il spawneaza iar

3:SetPlayerPos(playerid, 1448.5775,-665.8368,1297.8274); - ii schimba pozitia...deci

Sterge 

SetSpawnInfo(playerid, 0, 1, 1448.5775,-665.8368,1297.8274, 91.7374, 0, 0, 0, 0, 0, 0 );
SpawnPlayer(playerid);

Presupun ca de la asta e...

Massari e curva mea

Posted

Daca sterg liniile acelea va arata butonul "Spawn" alaturi de sageti de la publicul "OnPlayerRequestClass" si, pentru a scapa de el, am pus acele 2 linii in plus.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.