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