15.03.2012, 14:32
What is lcngate,rusgate,yakuzagate not work?Script on serbian languge.
Quote:
if(!strcmp(cmdtext, "/gateopen", true) || !strcmp(cmdtext, "/otvorikapiju", true)) // By Ellis { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3) { if (PlayerToPoint(15, playerid,1589.053344,-1638.123168,14.122960)) { MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.; SetTimer("GateClose", 12000, 0); SendClientMessage(playerid, COLOR_BLUE,"Garaza je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara garazu.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960); } else if (PlayerToPoint(15, playerid,1544.700317,-1630.735717,13.096980)) { DestroyDynamicObject( pdgate2 ); pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869 ); SetTimer("GateClose5", 6000, 0); SendClientMessage(playerid, COLOR_BLUE,"Kapija je otvorena i zatvorice se za 6 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara kapiju.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } else if (PlayerToPoint(15, playerid,1534.9020,-1451.5979,14.4882)) { MoveDynamicObject(fbigate,1534.9020,-1451.5979,20.4882, 1.5); SetTimer("GateClose3", 7000, 0); SendClientMessage(playerid, COLOR_BLUE,"FBI kapija je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara FBI kapiju.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } //SFPD KAPIJA else if (PlayerToPoint(15, playerid,-1636.5587158203,688.26141357422,8.960891723632) { MoveDynamicObject(sfpdgate,-1646.0587158203,688.26141357422,8.9608917236328, 1.5); MoveDynamicObject(sfpdgate1,-1617.5162353516,688.26141357422,8.9608917236328, 1.5); SetTimer("GateClose9", 7000, 0); SendClientMessage(playerid, COLOR_BLUE,"SFPD kapija je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara SFPD kapiju.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } //SFPD RAMPA 1 else if (PlayerToPoint(15, playerid,-1572.2039794922,658.83715820313,6.8781242370605)) { DestroyDynamicObject( sfpdrampa ); sfpdrampa1 = CreateDynamicObject(968,-1572.2039794922,658.83715820313,6.8781242370605,0, 0,90) SetTimer("GateClose10", 7000, 0); SendClientMessage(playerid, COLOR_BLUE,"SFPD 1 rampa je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara SFPD 1 rampu.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } //SFPD RAMPA 2 else if (PlayerToPoint(15, playerid,-1701.4404296875,687.60888671875,24.632816314697)) { DestroyDynamicObject( sfpdrampa2 ); sfpdrampa3 = CreateDynamicObject(968,-1701.4404296875,687.60888671875,24.632816314697,0, 0,90) SetTimer("GateClose11", 7000, 0); SendClientMessage(playerid, COLOR_BLUE,"SFPD 2 rampa je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara SFPD 2 rampu.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); } } else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { if (PlayerToPoint(15, playerid,1283.8721923828,-2056.623046875,57.79080581665)) { MoveDynamicObject(lcngate, 1284.6973876958, -2056.69921875, 66.518, 1); SetTimer("GateClose6", 10000, 0); SendClientMessage(playerid, COLOR_BLUE,"LCN Kapija je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara LCN kapiju.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); } } else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { if (PlayerToPoint(15, playerid,1245.3275146484,-767.20440673828,93.842063903809)) { MoveDynamicObject(yakuzagate,1245.3275146484,-767.20440673828,98.517349243164,1); SetTimer("GateClose7", 10000, 0); SendClientMessage(playerid, COLOR_BLUE,"Yakuza Kapija je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara Yakuza kapiju.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); } } else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { if (PlayerToPoint(15, playerid,-2127.4079589844,-80.801971435547,37.093704223633)) { MoveDynamicObject(rusgate,-2127.4079589844,-80.801971435547,42.818748474121,1); SetTimer("rusgateclose", 10000, 0); SendClientMessage(playerid, COLOR_BLUE,"RM Kapija je otvorena i zatvorice se za 7 sekundi."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s uzima daljinski i otvara RM kapiju.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); } } else return SendClientMessage(playerid, COLOR_GREY,"Nemate daljinski od kapije/rampe."); return 1; } |