23.02.2014, 19:33
I don't know if it was the cause, I changed position of
PlayerInfo[playerid][Inter] = -1;
Before:
After:
PlayerInfo[playerid][Inter] = -1;
Before:
pawn Код:
CMD:exit(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, InterInfo[PlayerInfo[playerid][Inter]][IntPos][0], InterInfo[PlayerInfo[playerid][Inter]][IntPos][1], InterInfo[PlayerInfo[playerid][Inter]][IntPos][2]))
{
SendClientMessage(playerid, BLUE, "You have left the interior successfully. /enter to enter it.");
PlayerInfo[playerid][Inter] = -1;
SetPlayerPos(playerid, InterInfo[PlayerInfo[playerid][Inter]][EnterPos][0], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][1], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][2]);
SetPlayerInterior(playerid, 0);
}
else SendClientMessage(playerid, RED, "You are not near to an interior exit.");
return 1;
}
pawn Код:
CMD:exit(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, InterInfo[PlayerInfo[playerid][Inter]][IntPos][0], InterInfo[PlayerInfo[playerid][Inter]][IntPos][1], InterInfo[PlayerInfo[playerid][Inter]][IntPos][2]))
{
SendClientMessage(playerid, BLUE, "You have left the interior successfully. /enter to enter it.");
SetPlayerPos(playerid, InterInfo[PlayerInfo[playerid][Inter]][EnterPos][0], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][1], InterInfo[PlayerInfo[playerid][Inter]][EnterPos][2]);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][Inter] = -1;
}
else SendClientMessage(playerid, RED, "You are not near to an interior exit.");
return 1;
}