Exit/Enter Commands -
AhmedMohamed - 23.01.2014
hello guys , i made my enter/exit commands and i have some errors when i /enter ammunation:
I found that:

My Code :
Код:
CMD:enter(playerid, params[])
{
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1368.8760,-1279.8350,13.5469))
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); //ammunation
SetPlayerInterior(playerid, 1);
}
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1833.7809,-1842.6556,13.5781))
SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); //24/7
SetPlayerInterior(playerid,10);
}
return 1;
}
CMD:exit(playerid, params[])
{
{
if(IsPlayerInRangeOfPoint(playerid, 5, 286.148986,-40.644397,1001.515625))
SetPlayerPos(playerid, 1368.8760,-1279.8350,13.5469);//ammunation
SetPlayerInterior(playerid, 0);
}
{
if (IsPlayerInRangeOfPoint(playerid, 5,6.091179,-29.271898,1003.549438))
SetPlayerPos(playerid, 1833.7809,-1842.6556,13.5781); //24/7
SetPlayerInterior(playerid, 0);
}
return 1;
what is wrong then??
Notable: when I delete the 24/7 code it work good
Re: Exit/Enter Commands -
$Marco$ - 23.01.2014
Change:
SetPlayerInterior(playerid,10);
To:
SetPlayerInterior(playerid,1);
Re: Exit/Enter Commands -
AhmedMohamed - 23.01.2014
When i do that it work good but the 24/7 not work good ??
Re: Exit/Enter Commands -
Dignity - 23.01.2014
Both have been tested and work.
pawn Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1368.8760,-1279.8350,13.5469))
{
SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); //ammunation
SetPlayerInterior(playerid, 1);
}
if(IsPlayerInRangeOfPoint(playerid, 5, 1833.7809,-1842.6556,13.5781))
{
SetPlayerPos(playerid, 6.1662,-31.3804,1003.5494); //24/7
SetPlayerInterior(playerid, 10);
}
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5, 286.148986,-40.644397,1001.515625))
{
SetPlayerPos(playerid, 1368.8760,-1279.8350,13.5469);//ammunation
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 5,6.091179,-29.271898,1003.549438))
{
SetPlayerPos(playerid, 1833.7809,-1842.6556,13.5781); //24/7
SetPlayerInterior(playerid, 0);
}
return 1;
}
Re: Exit/Enter Commands -
AhmedMohamed - 23.01.2014
thanks all it now work

and thank you "Mionee"