Class choose problem
#1

Hello again :P
i have a little problem when i want to spawn.
because when i can choose my class there is no character you only see the landscape.
here's the code:
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Los Santos: F4A");
	AddPlayerClass(0,2495.5459,-1686.8917,13.5156,1.8003,0,0,0,0,0,0); // spawn 1
	AddPlayerClass(105,2511.5530,-1688.1600,13.5639,48.4874,0,0,0,0,0,0); // spawn 2
	AddPlayerClass(106,2521.2197,-1678.8292,15.3338,88.2811,0,0,0,0,0,0); // spawn 3
	AddPlayerClass(107,2523.0190,-1658.1779,15.4935,90.4744,0,0,0,0,0,0); // spawn 4
	AddPlayerClass(106,2513.4324,-1650.5984,14.3557,139.9815,0,0,0,0,0,0); // spawn 5
	AddPlayerClass(107,2498.4082,-1644.3429,13.7826,182.9085,0,0,0,0,0,0); // spawn 6
	AddPlayerClass(105,2486.2207,-1645.5916,14.0772,179.1485,0,0,0,0,0,0); // spawn 7
	AddPlayerClass(106,2459.3501,-1689.2700,13.5379,357.7502,0,0,0,0,0,0); // spawn 8 
	AddPlayerClass(108,2168.3401,-1673.5699,15.0831,225.0000,0,0,0,0,0,0); // spawn 9
	AddPlayerClass(110,2155.8486,-1699.7512,15.0859,182.2179,0,0,0,0,0,0); // spawn 10
	AddPlayerClass(109,2139.5007,-1698.6825,15.0784,182.2179,0,0,0,0,0,0); // spawn 11
	AddPlayerClass(108,2144.9766,-1663.9299,15.0859,219.5049,0,0,0,0,0,0); // spawn 12
	AddPlayerClass(109,2179.8975,-1661.2783,14.9066,227.9415,0,0,0,0,0,0); // spawn 13
	AddPlayerClass(163,2056.8923,-2376.8640,18.8203,254.5146,0,0,0,0,0,0); // spawn 14
	AddPlayerClass(165,2056.8535,-2310.2192,18.8203,275.0921,0,0,0,0,0,0); // spawn 15
	AddPlayerClass(164,2082.2815,-2294.2773,18.6639,87.2586,0,0,0,0,0,0); // spawn 16
	AddPlayerClass(166,2083.0498,-2364.8760,18.4061,92.4731,0,0,0,0,0,0); // spawn 17
	AddPlayerClass(45,316.0969,-1772.6989,4.6938,183.8209,0,0,0,0,0,0); // spawn 18
	AddPlayerClass(138,305.3416,-1771.8264,4.5472,183.8209,0,0,0,0,0,0); // spawn 19
	AddPlayerClass(146,295.0263,-1766.7380,4.5446,183.8209,0,0,0,0,0,0); // spawn 20
	AddPlayerClass(140,281.1688,-1768.8191,4.5117,183.8209,0,0,0,0,0,0); // spawn 21
	AddPlayerClass(280,1551.2970,-1675.4399,15.7861,91.1340,0,0,0,0,0,0); // spawn 22 
	AddPlayerClass(282,1605.4221,-1634.7566,13.7188,63.6029,0,0,0,0,0,0); // spawn 23
	AddPlayerClass(285,1582.3250,-1692.1356,6.2188,231.7408,0,0,0,0,0,0); // spawn 24
	AddPlayerClass(281,1553.7710,-1636.4558,6.2188,132.7751,0,0,0,0,0,0); // spawn 25
	AddPlayerClass(23,529.0291,-1289.7460,17.2422,326.2364,0,0,0,0,0,0); // spawn 26
	AddPlayerClass(228,476.0741,-1517.4198,20.4227,301.6377,0,0,0,0,0,0); // spawn 27

	return 1;
}
help me plz!!!!

look at my other thread two: https://sampforum.blast.hk/showthread.php?tid=268222
srry if bad English but i'm Dutch XD
THNX for reading and maybe helping
GRTZ!, MeNMyselv
Reply
#2

AddPlayerClass(228,476.0741,-1517.4198,20.4227,90,-1,-1,-1,-1,-1,-1);

Try this for test, if you still cant see the character please reply here i will help you.
Reply
#3

Show the OnPlayerRequestClass. I think I know the problem.
Reply
#4

You need repos your camera on OnPlayerRequestClass, as Jay just said, post it.
Reply
#5

@WoodPecker
No it won't work
if you need something from the script i will give it if you ask for it.

@Jay.
Here it is:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1496.5732, -691.3441, 94.7500);
	SetPlayerCameraPos(playerid, 1496.5732, -691.3441, 94.7500);
	SetPlayerCameraLookAt(playerid, 1496.5732, -691.3441, 94.7500);
	return 1;
}
Reply
#6

MeNMYselv go edit the SetPlayerCameraPos ... for example like this:

Код:
SetPlayerPos(playerid,1462.0690,-1579.0913,65.2109);
SetPlayerCameraPos(playerid, 1465.0065,-1583.2958,69.7909);
SetPlayerCameraLookAt(playerid,1533.7640,-1678.1931,13.3828);
Reply
#7

@WoodPecker
Still not working and same camera position
Reply
#8

Add this to OnPlayerRequestClass:
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1462.0690,-1579.0913,65.2109);
SetPlayerCameraPos(playerid, 1465.0065,-1583.2958,69.7909);
SetPlayerCameraLookAt(playerid,1533.7640,-1678.1931,13.382;

And this to OnGameModeInit:
AddPlayerClass(299,982.1890,-1624.2583,14.952,90,-1,-1,-1,-1,-1,-1);
Reply
#9

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerCameraPos(playerid, 2796.6565, 1261.6398, 13.1481); SetPlayerCameraLookAt(playerid, 2796.0112, 1260.8768, 13.0381);
    SetPlayerPos(playerid, 2790.6689,1255.3201,11.3125); SetPlayerFacingAngle(playerid,358.2058);
    return 1;
}
Try this
Reply
#10

I simply took grandlarc's positions, you can use them or use this one to set your own location.
Either this,
https://sampforum.blast.hk/showthread.php?tid=94235
Or this:
pawn Код:
SetPlayerInterior(playerid,11);
        SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
        SetPlayerFacingAngle(playerid,0.0);
        SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
        SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)