OnPlayerRequestClass...
SetPlayerPos(playerid, x,y,z);
SetPlayerCameraPos(playerid, x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z);
Ha mappoltál is akkor.
OnGameModeInit() vagy FilterScriptInit
CreateObject fontos, hogy CreateObject-be legyen Ennyi .
És a random Spawn..
new Float:RandomSpawn[][4] =
{
// Positions, (X, Y, Z and Facing Angle)
{x,y,z},
{x,y,z},
{x,y,z}
};
OnPlayerSpawn
public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(RandomSpawn));
// SetPlayerPos to the random spawn data
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
// SetPlayerFacingAngle to the random facing angle data
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
return 1;
}
Amugy:
http://wiki.sa-mp.com/wiki/RandomEnnyí