PHP код:
new entropolial[MAX_PLAYER];
if(strcmp(cmdtext, "/Entrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1555.5046, -1675.6525, 16.1953))
{//Entrada Policia Militar
entropolicial[playerid] = 1;
GameTextForPlayer(playerid, "~b~DP ~w~Policia Militar ", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 1);
}
}
if(strcmp(cmdtext, "/Sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.783996,63.900199,1003.640625))
{//Saida Policia Militar
if(entropolicial[playerid] == 1)
{
GameTextForPlayer(playerid, "~b~DP ~w~Policia Militar ", 5000, 1);
entropolicial[playerid] = 0;
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1555.5046, -1675.6525, 16.1953);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
}
}