pawn Код:
if(!strcmp(cmdtext, "/openhq", true))
{
if(GetPlayerSkin(playerid) == 285) {
SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
if(IsPlayerInRangeOfPoint(playerid,10.0,244.0000000,72.5000000,1002.5999800))
{
MoveObject(hq,244.0000000,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
return 1;
}
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}
if(!strcmp(cmdtext, "/closehq", true))
{
if(GetPlayerSkin(playerid) == 285) {
SendClientMessage(playerid, COLOR_ORANGE, "INFO: you have closed the gate");
if(IsPlayerInRangeOfPoint(playerid,10.0,245.3999900,72.5000000,1002.5999800))
{
MoveObject(hq,245.3999900,72.5000000,1002.5999800,2.0000000, 0.0, 0.0, 0.0);
return 1;
}
}
else return SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this command");
}