26.04.2014, 18:10
First, take the first map's cordinate, it's like this or should be similiar
Example :
-3065.11597 = X
469.68549 = Y
23.63828 = Z
Then go to the map, and find a good spawn location and do /save then Documents > Gta San Andreas User Files > SAMP > savedpositions.txt and find the
Example:
-252.3017 = X
2606.5032 = Y
62.8582 = Z
Then again same procedure as before
Example :
pawn Код:
CreateObject(7983, -3065.11597, 469.68549, 23.63828, 0.00000, 0.00000, -38.27998);
469.68549 = Y
23.63828 = Z
pawn Код:
COMMAND:gotomap(playerid)
{
SetPlayerPos(playerid,-3065.11597, 469.68549, 23.63828) // SetPlayerPos(playerid, X, Y , Z);
return 1;
}
Example:
pawn Код:
AddPlayerClass(0,-252.3017,2606.5032,62.8582,4.4308,0,0,0,0,0,0);
2606.5032 = Y
62.8582 = Z
Then again same procedure as before
pawn Код:
COMMAND:map(playerid)
{
SetPlayerPos(playerid, -252.3017,2606.5032,62.8582); // SetPlayerPos(playerid, X, Y , Z);
return 1;
}