SA-MP Forums Archive
Need help in player [SPAWN] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Need help in player [SPAWN] (/showthread.php?tid=325439)



Need help in player [SPAWN] - Van7 - 13.03.2012

hello i am Van.
i would like to know how do i edit and change a spawn position i got a script most server has it can anyone tell me please what i type in [LOOK] Pawn]

Thank you if you helped.


Re: Need help in player [SPAWN] - Van7 - 13.03.2012

PLEASE HELP!! i need to do it soon please someone tell me how to set player spawn pos new place


AW: Need help in player [SPAWN] - mrbeam - 13.03.2012

There are 100 tutorials on ******* and here at this forum.
Silly question/tread in my opinion.


Re: Need help in player [SPAWN] - PawnFox - 13.03.2012

There is one way to learn pawn: http://wiki.sa-mp.com


Re: Need help in player [SPAWN] - Van7 - 13.03.2012

I Just need to change spawn so plz just type the cmd dont tell me to go on site to learn it sucks cant find it .it makes late.


Re: Need help in player [SPAWN] - PawnFox - 13.03.2012

Quote:
Originally Posted by Van7
Посмотреть сообщение
I Just need to change spawn so plz just type the cmd dont tell me to go on site to learn it sucks cant find it .it makes late.
Well, check OnPlayerSpawn( playerid ) or at: OnGameModeInit , AddPlayerClass




Re: Need help in player [SPAWN] - SsHady - 13.03.2012

Alright FIrst goto SAMP Open any server you want

1.First goto the place where you want To spawn
2.the Type /save
3.goto My Documents>Gta sanandreas Uesr Files>SAMP>Savedpostions.txt
4.Open it and you will find a Code like this
AddPlayerClass(0,139.3971,1785.0571,24.4829,179.6763,0,0,0,0,0,0);
5.Now you have to Copy XYX Coords And The Angle(the XYZ Coords are mentioned IN Red Color above And Angel in Color Blue)
6.Now Open your Script And GOto Public OnplayerRequestClass Callback it will look like this
Код HTML:
public OnPlayerRequestClass(playerid, classid)
{
	return 1;
}
7.Now Just Type This under The Callback
Код HTML:
SetPlayerPos(playerid, AddtheCoordshere);
SetPlayerFacingAngle( playerid, addtheanglehere );
After Doing It it will look like this
Код HTML:
public OnPlayerRequestClass(playerid, classid)
{
       SetPlayerPos(playerid, AddtheCoordshere);
       SetPlayerFacingAngle( playerid, addtheanglehere );
	return 1;
}
And Your Done!
Rep me If you liked It


AW: Need help in player [SPAWN] - mrbeam - 13.03.2012

I always wonder why people can't use ****** or the wiki -.-'