Sziasztok
valaki megtudja mondani hogy miért nem zárl e a kapu
EQ - LP
new kapu;
kapu = CreateDynamicObject(968, -953.73486, 2710.31543, 45.65230, 0.00000, 0.00000, 90.00000);
if(!strcmp(cmdtext, \"/határnyit\", true))
{
if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][szervLeader] == 2 || PlayerInfo[playerid][szervTag] == 2)
{
if (PlayerToPoint(7, playerid,-960.8800,2708.4907,45.9125))
{
MoveDynamicObject(kapu, -953.7349, 2710.3154, 45.6523, 5);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), \"* %s felnyitja a sorompót\", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else { SendClientMessage(playerid, COLOR_GREY,\"Túl messze vagy a sorompótól.\"); }
}
else return SendClientMessage(playerid, COLOR_GREY,\"Nem vagy Önkormányzati személy/Katona/Admin!\");
return 1;
}
if(!strcmp(cmdtext, \"/határzár\", true))
{
if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][szervLeader] == 2 || PlayerInfo[playerid][szervTag] == 2)
{
if (PlayerToPoint(7, playerid,-960.8800,2708.4907,45.9125))
{
MoveDynamicObject(kapu,-953.73492, 2710.31543, 45.65230, 5);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), \"* %s lezárja a sorompót\", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else { SendClientMessage(playerid, COLOR_GREY,\"Túl messze vagy a sorompótól.\"); }
}
else return SendClientMessage(playerid, COLOR_GREY,\"Nem vagy Önkormányzati személy/Katona/Admin!\");
return 1;
}