SA-MP Forums Archive
Need some guidance on setting player spawns - 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: Need some guidance on setting player spawns (/showthread.php?tid=408604)



removed - rymax99 - 18.01.2013

removed


Re: Need some guidance on setting player spawns - Tom1412 - 18.01.2013

Some of my video's might help you, https://www.*******.com/user/Aiwa141...ew=0&flow=grid


- rymax99 - 19.01.2013

removed


Re: Need some guidance on setting player spawns - Chenko - 19.01.2013

Try this for OnPlayerRequestClass:

pawn Код:
public OnPlayerRequestClass (playerid, classid)
{  
    if(classid == 115)
    {
        SetPlayerPos(playerid, 2498.5054,-1684.9028,13);
        SetPlayerCameraPos(playerid, 2497.2312,-1680.4025,13);
        SetPlayerCameraLookAt(playerid, 2497.2312,-1680.4025,2);
    }
    return 1;
}



Re: Need some guidance on setting player spawns - rymax99 - 19.01.2013

removed


Re: Need some guidance on setting player spawns - Chenko - 19.01.2013

You mean from AddPlayerClass? It's AddPlayerClass(skinid, X coor, Y coor, Z coor, Facing angle, ....) The dots are all those zeros and are just weapon ids and ammo


Re: Need some guidance on setting player spawns - rymax99 - 19.01.2013

Quote:
Originally Posted by Chenko
Посмотреть сообщение
You mean from AddPlayerClass? It's AddPlayerClass(skinid, X coor, Y coor, Z coor, Facing angle, ....) The dots are all those zeros and are just weapon ids and ammo
I'm talking about setting the camera angle to face the player, so players see the skins they want to chose.


Re: Need some guidance on setting player spawns - rymax99 - 19.01.2013

bump, reached page 5 and still need help


Re: Need some guidance on setting player spawns - iGetty - 19.01.2013

Quote:
Originally Posted by rymax99
Посмотреть сообщение
bump, reached page 5 and still need help
Don't bump within 24 hours.

You need to use:

pawn Код:
SetPlayerPos(playerid, x, y, z);
SetPlayerCameraPos(playerid, x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z);
SetPlayerFacingAngle(playerid, a);
Where the x, y, z and a's are your co-ordinates.


removed - rymax99 - 20.01.2013

removed