SA-MP Forums Archive
Help me please i am noob (Pawno) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me please i am noob (Pawno) (/showthread.php?tid=298129)



Help me please i am noob (Pawno) - Yue Rexie - 19.11.2011

Hi, I'm a newbie in pawn, and I'm trying to make a GM from scratch, though initially I encountered the following problem.

-First when you start you will see a message from the server and then request a password within the interior 14 where is immigration, then the character must appear in at the airport in saints, but for some reason only see the map where shown position but the scene is rendered.



http://pastebin.com/DgX39NHR


Re: Help me please i am noob (Pawno) - Kostas' - 19.11.2011

pawn Код:
SetPlayerCameraPos(playerid, -1862.8102,46.5103,1055.1436);
SetPlayerCameraLookAt(playerid, -1862.8102,46.5103,1055.1436);
SetPlayerPos(playerid,-1862.8102,46.5103,1061.1436);
SetPlayerInterior(playerid,14);
Are the coordinates correct, because if they are out of the building and you have Interior 14, it shows like that.
In case you want to spawn out of the building
pawn Код:
SetPlayerInterior(playerid,0);



Re: Help me please i am noob (Pawno) - Yue Rexie - 19.11.2011

Interior 14.

Код:
// Posiciуn de Imigraciуn.
        SetPlayerCameraPos(playerid, -1862.8102,46.5103,1055.1436);
        SetPlayerCameraLookAt(playerid, -1862.8102,46.5103,1055.1436);
        SetPlayerPos(playerid,-1862.8102,46.5103,1061.1436);
        SetPlayerInterior(playerid,14);
it works correctly, however no where to put this to make it out of the airport of saints.

Код:
        // Jugador en la Salida del Aeropuerto.
        SetPlayerFacingAngle(playerid,344.1960);             // Angulo de Mirada.
        SetPlayerPos(playerid,1640.3710,-2334.4058,13.5469); // Posiciуnamiento.
        SetPlayerInterior(playerid,0);
Here not render the scene, only seen in the map and in the first message.