21.10.2009, 13:10
Get the X, Y, Z of the object where the player must spawn on.
Example: CreateObject(1234, 1234.234, 2142.1245,2452.5243);
The X, Y and Z are the three after the object ID. : X= 1234.234 Y = 2142.1245 Z = 2452.5243
Do the Z +5 or something, that the player is not IN the object:
2452.5243 + 5 = 2457.5243
And then:
Example: CreateObject(1234, 1234.234, 2142.1245,2452.5243);
The X, Y and Z are the three after the object ID. : X= 1234.234 Y = 2142.1245 Z = 2452.5243
Do the Z +5 or something, that the player is not IN the object:
2452.5243 + 5 = 2457.5243
And then:
pawn Код:
SetPlayerPos(playerid, 1234.234, 2142.1245, 2457.5243); // edited