(ASK)How to change place player respawn - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (ASK)How to change place player respawn (
/showthread.php?tid=160248)
(ASK)How to change place player respawn -
gondes - 16.07.2010
I need script for change new player respawn place
Sorry bad my english
Re: (ASK)How to change place player respawn -
dice7 - 16.07.2010
Change the SetPlayerPos, SetPlayerFacingAngle, SetPlayerCamerPos and SetPlayerCameraLookAt coords in OnPlayerRequestClass. If you mean where he dies, then search your script for AddPlayerClass. The second, third and fourth number are x, y and z coords
Re: (ASK)How to change place player respawn -
TouR - 16.07.2010
You mean when the player dies?
Re: (ASK)How to change place player respawn -
ToPhrESH - 16.07.2010
at top of script
pawn Код:
new Float:RandomSpawn[][13] = {
{-2515.8137,1544.4116,17.3281},// 1.
{-2498.4128,1547.0276,24.1719},// 2.
{-2472.5112,1544.6976,36.8047},// 3.
{-2430.9622,1542.7004,31.8594},// 4.
{-2394.3989,1548.0095,31.8594},// 5.
{-2343.6572,1546.0992,26.0469},// 6.
{-2312.6807,1545.8468,18.7734},// 7.
{-2441.2373,1550.6726,20.2344},// 8.
{-2369.0574,1552.5918,2.1172}, // 9.
{-2397.0483,1540.1896,7.9219}, // 10.
{-2418.2493,1556.1639,10.8281},// 11.
{-2437.3655,1538.9175,11.7656} // 12.
};
Those are random coordinates use your own. Give me your coordinates so i can do it for you
pawn Код:
OnPlayerSpawn
{
SetPlayerPos(playerid, RandomSpawn[iRandom][0], RandomSpawn[iRandom][1], RandomSpawn[iRandom][2]), SetPlayerFacingAngle(playerid, RandomSpawn[iRandom][3]);
return 1;
}