Spawn - 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: Spawn (
/showthread.php?tid=422990)
Spawn -
raamiix - 16.03.2013
When someone register i want he spawn at Unity Station how to change that?
Re: Spawn -
rbush12 - 16.03.2013
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, x,y,z);
SetPlayerCameraPos(playerid, x,y,z);
SetPlayerCameraLookAt(playerid, x,y,z);
}
return 1;
}
Change the Cordinates
Re: Spawn -
raamiix - 16.03.2013
Quote:
Originally Posted by rbush12
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, x,y,z);
SetPlayerCameraPos(playerid, x,y,z);
SetPlayerCameraLookAt(playerid, x,y,z);
}
return 1;
}
Change the Cordinates
|
Where in the gamemode i going to put that?
Re: Spawn -
rbush12 - 16.03.2013
Below OnGameModeInit (Not Inside of it)
Re: Spawn -
Jstylezzz - 16.03.2013
@raamiix: Like he wrote in his code 'public OnPlayerSpawn'
Check where the SetPlayerPos is already, then change its coords.