if(!strcmp(cmdtext, \"/nagyhatár-nyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { if (PlayerToPoint(5, playerid,-1032.4048, -2850.9265, 67.7270)) { MoveDynamicObject(nagyhatar, -1032.4048, -2850.9265, 67.7270, 2); //forgás kordináta: 0.0000, 0.0000, 90.0000 GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"* %s kinyitja a sorompót\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, GREEN_SUCCES, \"(( Sikeresen felnyitottad a sorompót ))\"); } else { SendClientMessage(playerid, COLOR_ORANGE,\"(( Túl messze vagy a sorompótol ))\"); }}else return SendClientMessage(playerid, COLOR_ORANGE,\"(( Ezt a parancsot csak rendőrök használhatják ))\"); return 1;}if(!strcmp(cmdtext, \"/nagyhatár-zár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { if (PlayerToPoint(7, playerid,-1032.4048, -2850.9265, 67.7270)) { MoveDynamicObject(rendorseg,-1032.4048, -2850.9265, 67.7270, 2); //forgási kordináta 0.0000, -90.0000, 90.0000 GetPlayerName(nagyhatarhatar, sendername, sizeof(sendername)); format(string, sizeof(string), \"* %s bezárja a kaput\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, GREEN_SUCCES, \"(( Sikeresen lezártad a sorompót ))\"); } else { SendClientMessage(playerid, COLOR_GREY,\"(( Túl messze vagy a sorompótol ))\"); }}else return SendClientMessage(playerid, COLOR_GREY,\"(( Ezt a parancsot csak rendőrök használhatják ))\"); return 1;}
if(!strcmp(cmdtext, \"/nagyhatár-nyit\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { if (PlayerToPoint(5, playerid,-1032.4048, -2850.9265, 67.7270)) { MoveDynamicObject(nagyhatar, -1032.4048,/*X*\\ -2850.9265/*Y*\\, 67.7270/*Z*\\, 2/*Sebesség*\\, 0.0000/*rX*\\, 0.0000/*rY*\\, 90.0000/*rZ*\\); //forgás kordináta: 0.0000, 0.0000, 90.0000 GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), \"* %s kinyitja a sorompót\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, GREEN_SUCCES, \"(( Sikeresen felnyitottad a sorompót ))\"); } else { SendClientMessage(playerid, COLOR_ORANGE,\"(( Túl messze vagy a sorompótol ))\"); }}else return SendClientMessage(playerid, COLOR_ORANGE,\"(( Ezt a parancsot csak rendőrök használhatják ))\"); return 1;}if(!strcmp(cmdtext, \"/nagyhatár-zár\", true)){ if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { if (PlayerToPoint(7, playerid,-1032.4048, -2850.9265, 67.7270)) { MoveDynamicObject(rendorseg,-1032.4048, -2850.9265, 67.7270, 2, 0.0000, -90.0000, 90.0000); //forgási kordináta 0.0000, -90.0000, 90.0000 GetPlayerName(nagyhatarhatar, sendername, sizeof(sendername)); format(string, sizeof(string), \"* %s bezárja a kaput\", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, GREEN_SUCCES, \"(( Sikeresen lezártad a sorompót ))\"); } else { SendClientMessage(playerid, COLOR_GREY,\"(( Túl messze vagy a sorompótol ))\"); }}else return SendClientMessage(playerid, COLOR_GREY,\"(( Ezt a parancsot csak rendőrök használhatják ))\"); return 1;}