public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/enter", cmdtext, true, 10) ==0)////////////////////////////////////////
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
{
SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
SetPlayerFacingAngle(playerid, 68.2839);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
}//--------------------------------------------------------------------------------
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
{
SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
}
return 1;
}//--------------------------------------------------------------------------------
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/enter", cmdtext, true, 10) ==0)////////////////////////////////////////
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
{
SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
SetPlayerFacingAngle(playerid, 68.2839);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
}//--------------------------------------------------------------------------------
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank0001---
{
SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
}
return 1;
}//--------------------------------------------------------------------------------
return 0;
}
else if
ohh guys and i want to ask something like this i have make like first exsample of HrvojeCro
and when ill put the same interiorin 2 houses teleport me to the first one... Please someone tell me what is the problem or i need to use with pawn Код:
Thanks. sorry for posting in same topics :/ |
ohh guys and i want to ask something like this i have make like first exsample of HrvojeCro
and when ill put the same interiorin 2 houses teleport me to the first one... Please someone tell me what is the problem or i need to use with pawn Код:
Thanks. sorry for posting in same topics :/ |
When you use same interior for two different places, then always use different virtualworlds as well. Then, when you teleport out of the interior, check which virtualworld player has. Then use it to teleport player back to the correct entrance.
|
hmmm how u mean defferent virtualworlds :/
where i need to put that wirtualwords ? :S |
if(strcmp("/enter", cmdtext, true, 10) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
{
SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
SetPlayerFacingAngle(playerid, 68.2839);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 1);
}//--------------------------------------------------------------------------------
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
{
SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 2);
}
return 1;
}//--------------------------------------------------------------------------------
return 0;
}