27.08.2012, 17:12
Hello, i have a problem with my gate here.. i want only FakeLicensers and admin 1400 to be able to open it but its only the 1400 admin that is able to do it, what have i done wrong?
and its the same problem with this gate
pawn Код:
if (IsAFakeLicensers(playerid) || PlayerInfo[playerid][pAdmin] >= 1400)
{
if(IsPlayerInRangeOfPoint(playerid, 6,2119.5,-2275.6999511719,19.200000762939))
{
if(arms2 == 0)
{
MoveDynamicObject(armsdealer2, 2119.5,-2275.6999511719,16.799999237061, 1.5);
SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer's Door is Open, Please Close it!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and opens the Door.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
arms2 = 1;
}
else
{
MoveDynamicObject(armsdealer2, 2119.5,-2275.6999511719,19.200000762939, 3.0000);
SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer's Door is Closed, Thank You!");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and closes the Door.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
arms2 = 0;
}
}
pawn Код:
if (IsAFakeLicensers(playerid) || PlayerInfo[playerid][pAdmin] >= 1400)
{
if(IsPlayerInRangeOfPoint(playerid, 6,2178.5,-2255.099609375,14.699999809265))
{
if(arms1 == 0)
{
MoveDynamicObject(armsdealer1, 2178.5,-2255.099609375,10.699999809265, 1.5);
SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer Gate is open");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and opens Gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
arms1 = 1;
}
else
{
MoveDynamicObject(armsdealer1, 2178.5,-2255.099609375,14.699999809265, 3.0000);
SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer Gate is closed");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote control and closes Gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
arms1 = 0;
}
}
}