(ASK)How to change place player respawn
#1

I need script for change new player respawn place


Sorry bad my english
Reply
#2

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

You mean when the player dies?
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)