Class Selection - 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: Class Selection (
/showthread.php?tid=376144)
Class Selection -
MrReBzz - 09.09.2012
Hi, ,I have Got A Little Problem. My OnPlayerRequestClass Is
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
return 1;
}
But When I Spawn I See Nothing. I could Feel The Road But It Is Not Visible
P.S: But When I Choose A Class Selection Screen From Exterior It Works Fine.
Please Help Me!
Re: Class Selection -
clarencecuzz - 09.09.2012
pawn Код:
SetPlayerInterior(playerid,14);
Should be set to:
pawn Код:
SetPlayerInterior(playerid,0);
I'm pretty sure.
Example:
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//code continues...
return 1;
}
Re: Class Selection -
zT KiNgKoNg - 09.09.2012
ok put 14 to 0 and put SetPlayerVirtualWorld(playerid,0);
Re: Class Selection -
MrReBzz - 09.09.2012
But My SetPlayerPos Is A Interior Coordinate
Re: Class Selection -
zT KiNgKoNg - 09.09.2012
find the VirtualWorld of that interior and set SetPlayerVirtualWorld(playerid,//the VW);
Re: Class Selection -
clarencecuzz - 09.09.2012
If you're getting confused, we're talking about placing this under OnPlayerSpawn, I've edited my first post to add an example.
Re: Class Selection -
MrReBzz - 09.09.2012
Thanks Clarence cuzz It Worked!! Thnks Guys Its Fixed!