07.10.2016, 02:15
Responda se deu certo.
PHP код:
CMD:ppf(playerid, params[])
{
if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 15.0, 923.10742,-1222.08521,18.74700) || PlayerInfo[playerid][pEmprego] == 2 && IsPlayerInRangeOfPoint(playerid, 15.0, -75.8828,-346.7741,-6.9203))
{
MoveDynamicObject(PortaoPF, 923.10742,-1222.08521,18.74700,3,0.0000,0.0000,00.0000000);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("PoliciaFederalClosed", 5000, false);
SendClientMessage(playerid, COLOR_DBLUE, "Portгo aberto, ele se fecharб em 5 segundos!");
ObjectMovePlayer[playerid] = PortaoPF;
PlayerPlaySound(playerid, 1035, 0.0, 0.0, 0.0);
}
return 1;
}