HELP!!!!! - 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!!!!! (
/showthread.php?tid=386099)
HELP!!!!! -
sanjil_rijal - 19.10.2012
How Can i create a new spawn point for new players??
Help me!!
Re: HELP!!!!! -
RenSoprano - 19.10.2012
Код:
public OnPlayerRequestClass(playerid, classid) // Here are cordinates where you can request class
{
// Note: Change X , Y, Z with your cordinats
SetPlayerPos(playerid, X, Y,Z);
SetPlayerCameraLookAt(playerid, X, Y,Z);
SetPlayerCameraPos(playerid, X, Y, Z);
return 1;
}
And under on OnPlayerSpawn
Код:
SetPlayerPos(playerid, X,Y,Z); // Change X , Y, Z with your cordinats
SetPlayerFacingAngle(playerid, A); // Change A with Cordinates where you want your player to look in
Re: HELP!!!!! - Glint - 19.10.2012
Quote:
Originally Posted by RenSoprano
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, X, Y,Z);
return 1;
}
|
That won't work since you put it under OnPlayerRequestClass
Try to get the X, Y, Z coordinates of the spawn point and under OnPlayerSpawn
set his position using SetPlayerPos, And SetPlayerFacingAngle.
Re: HELP!!!!! -
RenSoprano - 19.10.2012
Quote:
Originally Posted by Glint
That won't work since you put it under OnPlayerRequestClass
Try to get the X, Y, Z coordinates of the spawn point and under OnPlayerSpawn
set his position using SetPlayerPos, And SetPlayerFacingAngle.
|
I wasn't ready I missclick post it
Re: HELP!!!!! - Glint - 19.10.2012
"RenSoprano" What is SetPlayerPosEx ? Is it new lol ? This is the first time i am hearing about it.