Posts: 224
Threads: 47
Joined: Jun 2012
Reputation:
0
16.09.2012, 09:51
(
Последний раз редактировалось firemanjv; 16.09.2012 в 10:18.
Причина: coordinates of marker
)
hi there ,
i have a problem i only have an interior but i will a checkpoint ( marker ) that when you enter it its you teleport to the interior
coordinates 1754.1925048828,-1597.7174072266,1813.7757568359
and the coordinates of the checkpoint ( marker )
x 1825
y -1538.9000244141
z 13.5
( location idelwood , little italie , commerence ) the building that looks like a jail !
( Sorry for my english i am dutch )
Posts: 224
Threads: 47
Joined: Jun 2012
Reputation:
0
no one can help me come guys there must be 1 that me can help
Posts: 1,219
Threads: 51
Joined: Jul 2012
1: Only Bumb after waiting 48 Hours or more 2: Why did the Thread have 5 Stars
Posts: 224
Threads: 47
Joined: Jun 2012
Reputation:
0
1. okay srry
2. i thought than come more people
Posts: 34
Threads: 2
Joined: Sep 2012
Reputation:
0
Do this on OnGamemodeInit Or OnGamemode
if (IsPlayerInRangeOfPoint(2.0, playerid, YOURCORDSHEREOFOUTSIDELOCATION))
{// Quick serach
SetPlayerPos(playerid, CORDS);
SetPlayerInterior(playerid, INTERIORID)
}
If this helps you Please rep
Posts: 1,219
Threads: 51
Joined: Jul 2012
WTF THomas this is wrong (Why under OnGameModeInit)
PHP код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,YourRange, Your X Cord,Your Y Cord, Your Z Cord))
{
SetPlayerPos(playerid, CORDS);
SetPlayerInterior(playerid, INTERIORID);
SetPlayerVirtualWorld(playerid,YourWorld); //Only if you want
}
return 1;
}
Posts: 3,004
Threads: 12
Joined: May 2011
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/Function:SetPlayerInterior
http://weedarr.wikidot.com/interior
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1825, -1538.9000244141, 13.5, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerInterior(playerid,interiorid);
SetPlayerPos(playerid,1754.1925048828,-1597.7174072266,1813.7757568359);
return 1;
}