Exit/Enter Commands
#1

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
Reply
#2

Change:
SetPlayerInterior(playerid,10);

To:
SetPlayerInterior(playerid,1);
Reply
#3

When i do that it work good but the 24/7 not work good ??
Reply
#4

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;
}
Reply
#5

thanks all it now work
and thank you "Mionee"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)