new hatarkapu;
hatarkapu = CreateDynamicObject(968, -954.77417, 2710.19849, 45.71190, 0.00000, 10.00000, 96.62950);
if(!strcmp(cmdtext, \"/határnyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(rkapu, -954.7742, 2710.1985, 45.7119, 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/Rendőr!\"); return 1;}if(!strcmp(cmdtext, \"/határzár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.7742, 2710.1985, 45.7119,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/Rendőr!\"); return 1;}
MoveDynamicObject(rkapu, -954.7742, 2710.1985, 45.7119, 5); [/quote]Ez itt a probléma. if(!strcmp(cmdtext, \"/határnyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu, -954.7742, 2710.1985, 45.7119, 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/Rendőr!\"); return 1;}if(!strcmp(cmdtext, \"/határzár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.7742, 2710.1985, 45.7119,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/Rendőr!\"); return 1;} Így már jó lesz.
MoveDynamicObject(rkapu, -954.7742, 2710.1985, 45.7119, 5);
if(!strcmp(cmdtext, \"/határnyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu, -954.7742, 2710.1985, 45.7119, 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/Rendőr!\"); return 1;}if(!strcmp(cmdtext, \"/határzár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.7742, 2710.1985, 45.7119,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/Rendőr!\"); return 1;}
MoveDynamicObject(rkapu,-954.7742, 2710.1985, 45.7119, 5);
MoveDynamicObject(hatarkapu,-954.7742, 2710.1985, 45.7119,5);
Nem ugyan azok
if(!strcmp(cmdtext, \"/határnyit\", true)){ // [...] { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu, -954.7742, 2710.1985, 45.7119, 5); // [...]}if(!strcmp(cmdtext, \"/határzár\", true)){ // [..] { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.7742, 2710.1985, 45.7119,5);// [....] [/quote]tényleg?
if(!strcmp(cmdtext, \"/határnyit\", true)){ // [...] { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu, -954.7742, 2710.1985, 45.7119, 5); // [...]}if(!strcmp(cmdtext, \"/határzár\", true)){ // [..] { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.7742, 2710.1985, 45.7119,5);// [....]
if(!strcmp(cmdtext, \"/határnyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu, -954.7742, 2710.1985, 45.7119, 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/Rendőr!\"); return 1;}if(!strcmp(cmdtext, \"/határzár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.77417, 2710.19849, 45.71190, 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/Rendőr!\"); return 1;}
ez már nem ugyan az if(!strcmp(cmdtext, \"/határnyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu, -954.7742, 2710.1985, 45.7119, 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/Rendőr!\"); return 1;}if(!strcmp(cmdtext, \"/határzár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervLeader] == 7 || PlayerInfo[playerid][szervTag] == 7) { if (PlayerToPoint(7, playerid, -954.77417, 2710.19849, 45.71190)) { MoveDynamicObject(hatarkapu,-954.77417, 2710.19849, 45.71190, 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/Rendőr!\"); return 1;}
-954.7742, 2710.1985, 45.7119