Need help in player [SPAWN]
#1

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.
Reply
#2

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

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

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

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.
Reply
#6

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

Reply
#7

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
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)