- 0
PlayerPosition
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Shokes13
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]
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".
Link to comment
Share on other sites
4 answers to this question
Recommended Posts