SA-MP Forums Archive
Just started a new GM, and there are some bugs - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Just started a new GM, and there are some bugs (/showthread.php?tid=263371)



Just started a new GM, and there are some bugs - Sasino97 - 21.06.2011

Hi, today I started a new gamemode called "Flight Simulator", and it was working OK. Now I don't know what I done, but when I'm at the class selection I can't see the players :P

pastebin


Re: Just started a new GM, and there are some bugs - Madsen - 21.06.2011

dont you need something like this:
pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
        //spawn1
        SetPlayerPos(playerid, 2495.3347,-1686.1836,13.5139);
        SetPlayerFacingAngle(playerid, 20.7438);
        SetPlayerCameraPos(playerid, 2495.3359,-1675.0475,13.3359);
        SetPlayerCameraLookAt(playerid, 2495.3347,-1686.1836,13.5139);
        return 1;
}
EDIT: did not see it under your url ..


Re: Just started a new GM, and there are some bugs - Sasino97 - 21.06.2011

I can see the background on my saved position, the game text, but I can't see the skins.


Re: Just started a new GM, and there are some bugs - Sasino97 - 23.06.2011

Bump. Please I need help


Re: Just started a new GM, and there are some bugs - [HiC]TheKiller - 23.06.2011

Your camera is pretty much in the player, that's the reason why you are unable to see the player. Move the X or Y Co-ordonate on SetPlayerCameraPos, try adding or taking away from the X axis :P.

Try
pawn Code:
SetPlayerCameraPos(playerid, 1532.2634, -2286.3093, 13.3828);
//OR
SetPlayerCameraPos(playerid, 1528.2634, -2286.3093, 13.3828);
The .0003 of that co-ordonate between the player and the camera would have made no difference at all.


Re: Just started a new GM, and there are some bugs - Sasino97 - 23.06.2011

LOL, THankyou :P I didn't notice that XDDD

I changed the numbers after the . XD

Now It's fixed, thanks