help lol!!!! - 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: help lol!!!! (
/showthread.php?tid=152293)
help lol!!!! -
billiout - 03.06.2010
its a noob question but how i can change the places on the request class? i mean for a team to show him some where and for the other team to show him in other place.
pls help!
Re: help lol!!!! -
DeathOnaStick - 03.06.2010
You need to do it like this:
pawn Код:
SetPlayerPos(playerid,PlayerX,PlayerY,PLayerZ);
SetPlayerCameraPos(playerid,CameraX,CameraY,CameraZ);
SetPlayerCameraLookAt(playerid,X1,Y1,Z1);
SetPlayerFacingAngle(playerid, FacingAngle);
As the Facing-Angle you just use the angle you saved together with the Players Position.
The Cameras position should not be the same as the players position. All in all it's easy.
Have fun trying out!
Cheers!
Re: help lol!!!! -
billiout - 03.06.2010
i know that but i want to change places for every class.
Re: help lol!!!! -
DeathOnaStick - 03.06.2010
Use GetPlayerSkin, if you use different skins, or GetPlayerTeam, if you use different teams.
Re: help lol!!!! -
billiout - 03.06.2010
thanks for help!
Re: help lol!!!! -
Jonni8 - 03.06.2010
Use it like this:
pawn Код:
ClassSelectionSetup(playerid)
{
SetPlayerPos(playerid,PlayerX,PlayerY,PLayerZ);
SetPlayerCameraPos(playerid,CameraX,CameraY,CameraZ);
SetPlayerCameraLookAt(playerid,X1,Y1,Z1);
SetPlayerFacingAngle(playerid, FacingAngle);
}
and put this into
pawn Код:
ClassSelectionSetup(playerid);
Re: help lol!!!! -
DeathOnaStick - 03.06.2010
Quote:
Originally Posted by тħeρяш
Use it like this:
pawn Код:
ClassSelectionSetup(playerid) { SetPlayerPos(playerid,PlayerX,PlayerY,PLayerZ); SetPlayerCameraPos(playerid,CameraX,CameraY,CameraZ); SetPlayerCameraLookAt(playerid,X1,Y1,Z1); SetPlayerFacingAngle(playerid, FacingAngle); }
and put this into
|
This wouldn't change a thing, lol
Quote:
Originally Posted by billiout
thanks for help!
|
Np.