Problem!! -
Shayaziz - 27.08.2012
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?
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;
}
}
and its the same problem with this gate
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;
}
}
}
Re: Problem!! -
Shayaziz - 27.08.2012
please help! i need this asap
Re: Problem!! -
Shayaziz - 27.08.2012
noone knows the problem with this?
Re: Problem!! - HuSs3n - 27.08.2012
show this
stock IsAFakeLicensers(...
Re: Problem!! -
Shayaziz - 27.08.2012
lol i dont have any ''stock isAFakelicenser'' im new and just copyed from the one of the army gates and changed everything that is needed and the army gate works and i cant find any ''stock isANG'' either.. i dont have any ''stock isA....'' but gates for pd and other factions works
Re: Problem!! - HuSs3n - 27.08.2012
then search for IsAFakeLicensers
Re: Problem!! -
TaLhA XIV - 27.08.2012
Maybe you used that is your enums,Post your enums,or where ever you defined IsFake...
Re: Problem!! -
Shayaziz - 28.08.2012
this was all i got told was needed to do, 1. put #define isAFakeLicensers at the other #define's 2.
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;
}
}
}
put this and
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;
}
}
this and it should be done. atleast whaot i got told..
Re: Problem!! -
Shayaziz - 28.08.2012
please help me with this problem!
Re: Problem!! -
Shayaziz - 29.08.2012
never mind i fixed it