[pomoc] Kapija

Započeo Thom, Avgust 20, 2012, 08:44:12 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:NLRP
Detaljan opis problema: Pa kako da stavim i da negde pokretnu kapiju da radi na /otvori i /zatvori
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Jel meni su krive kapije na PD/FBI/Swat
evo slike jedne kako to izgleda

I kako da stavi mnovu kapiju?

Poslednja Izmena: Avgust 20, 2012, 08:46:36 PRE PODNE od Thom

Citat: TopGun poslato Avgust 20, 2012, 09:29:20 PRE PODNE
evo ti stavi ove komande umjesto svojih /otvori i /zatvori
CMD:otvori(playerid, params[])
{
new hIme[MAX_PLAYER_NAME];
RPIme(playerid, hIme);
if(IsPlayerInRangeOfPoint(playerid, 25.0, 1588.41125488, -1638.09802246, 15.12577248)) //PD
{
if(IgracPolicajac(playerid) || IsPlayerAdmin(playerid))
{
    MoveDynamicObject(pdkapija, 1598.41113281, -1638.09765625, 15.12577248, 2.5);
        SCM(playerid, BELA, "| PD | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan PD/FBI/SWAT, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 1622.2909,-1860.4635,13.5507)) // Strugara
{
    if(PI[playerid][Posao] == POSAO_DRVOSECA || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(drvosecakapija, 1642.26733398,-1860.89221191,13.85636234, 2.5);
        SCM(playerid, BELA, "| Strugara | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u strugari, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 1643.50402832,-1718.33447266,14.80937481)) // FBI
{
    if(IgracPolicajac(playerid) || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(fbikapija, 1643.50402832,-1711.93444824,14.80937481,2.500);
        SCM(playerid, BELA, "| FBI | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan PD/FBI/SWAT, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 1506.50244141,-1342.02062988,16.96203995)) // Hitman
{
    if(PI[playerid][Clan] == 8 || PI[playerid][Lider] == 8 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(hitmanvrata, 1506.50244141,-1342.02062988,9.0620403289795,3.000);
        SCM(playerid, BELA, "| LSCA | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u agenciji, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 1214.68786621,-1842.05627441,14.05750275)) // Taxi 1
{
    if(PI[playerid][Posao] == POSAO_TAKSISTA || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(taxikapija[0], 1223.49877930,-1842.23828125,14.05750275,3.000);
        SCM(playerid, BELA, "| Taxi Company | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u Taxi Kompaniji, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 1270.04748535,-1841.98120117,14.07211113)) // Taxi 2
{
    if(PI[playerid][Posao] == POSAO_TAKSISTA || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(taxikapija[1], 1278.81311035,-1842.06762695,14.07211113,3.000);
        SCM(playerid, BELA, "| Taxi Company | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u Taxi Kompaniji, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 2231.34960938,-2212.78417969,13.80136967)) // LSB KAPIJE
{
    if(PI[playerid][Clan] == 12 || PI[playerid][Lider] == 12 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(lsbkapija[0], 2226.58203125,-2207.8642578125,13.801369667053,2.500);
MoveDynamicObject(lsbkapija[1], 2241.7060546875,-2223.2509765625,13.801369667053,2.500);
        SCM(playerid, BELA, "| LSB | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan bande, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2178.61621094,-2255.15771484,16.04496765)) // LSB VRATA
{
    if(PI[playerid][Clan] == 12 || PI[playerid][Lider] == 12 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(lsbvrata, 2178.61621094,-2255.15771484,19.74496765, 2.500);
        SCM(playerid, BELA, "| LSB | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan bande, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 313.41583252,-1558.09680176,31.15325928)) // SWAT KAPIJA 1
{
    if(PI[playerid][Clan] == 3 || PI[playerid][Lider] == 3 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(swatkapija1, 308.04602050781, -1554.0064697266, 31.153259277344, 2.500);
        SCM(playerid, BELA, "| SWAT | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan bande, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 366.98184204,-1465.99951172,30.30373955)) // SWAT KAPIJA 2
{
    if(PI[playerid][Clan] == 3 || PI[playerid][Lider] == 3 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(swatkapija2, 361.46960449219, -1470.7108154297, 30.303739547729, 2.500);
        SCM(playerid, BELA, "| SWAT | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan SWAT, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2812.47119141,-1468.45385742,16.96561432)) // NGR KAPIJA
{
    if(PI[playerid][Clan] == 13 || PI[playerid][Lider] == 13 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(ngrkapija, 2803.57128906,-1468.45385742,16.96561432, 2.500);
        SCM(playerid, BELA, "| NGR | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan NGR, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2617.1999511719, 1173.1999511719, 13.60000038147)) // FF KAPIJA
{
    if(PI[playerid][Clan] == 14 || PI[playerid][Lider] == 14 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(ffkapija, 2617.1999511719, 1173.1999511719, 5.5999999046326,2.500, 0, 0, 270.25);
        SCM(playerid, BELA, "| FF | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan FF, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2416.39990234,1033.09997559,12.60000038)) // MR KAPIJA
{
    if(PI[playerid][Clan] == 15 || PI[playerid][Lider] == 15 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(mrkapija, 2416.39990234,1033.09997559,6.90000010, 2.500, 0.00000000,0.00000000,269.99450684);
        SCM(playerid, BELA, "| MR | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan MR, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 815.00097656,-1439.51232910,16.42875290)) // RM KAPIJA
{
    if(PI[playerid][Clan] == 17 || PI[playerid][Lider] == 17 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(rmkapija1, 815.00097656,-1430.7122802734,16.42875290, 2.500);
        SCM(playerid, BELA, "| RM | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan RM, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 867.29101562,-1471.00756836,16.52072906)) // RM KAPIJA
{
    if(PI[playerid][Clan] == 17 || PI[playerid][Lider] == 17 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(rmkapija2, 857.19101562,-1471.00756836,16.52072906, 2.500);
        SCM(playerid, BELA, "| RM | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan RM, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 217.15054321289, -1392.3153076172, 51.890491485596)) // Anton Jarmek kapija
{
    if(PI[playerid][Kuca] == 317 || PI[playerid][Renta] == 317 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(kapija1_antonjarmek, 213.26525878906, -1399.619140625, 51.890491485596, 2.500);
    }
    else return SCM(playerid, CRVENA, "SpeedAC | Niste vlasnik/stanar kuce, ne mozete pomerati ova vrata.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste blizu kapije.");
format(CmdString, 64, "** %s uzima daljinski upravljac i otvara kapiju.", hIme);
ProxDetector(10.0, playerid, CmdString, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
return 1;
}
CMD:zatvori(playerid, params[])
{
new hIme[MAX_PLAYER_NAME];
RPIme(playerid, hIme);
if(IsPlayerInRangeOfPoint(playerid, 25.0, 1588.41125488, -1638.09802246, 15.12577248)) //PD
{
if(PI[playerid][Clan] != 1 && PI[playerid][Lider] != 1) return SCM(playerid, CRVENA, "SpeedAC | Niste clan PD/FBI/SWAT, ne mozete pomerati ovu kapiju.");
MoveDynamicObject(pdkapija, 1588.41125488, -1638.09802246, 15.12577248, 2.5);
        SCM(playerid, BELA, "| PD | {BFC0C2}zatvarate kapiju baze.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 1622.2909,-1860.4635,13.5507)) // Strugara
{
    if(PI[playerid][Posao] == POSAO_DRVOSECA || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(drvosecakapija, 1622.26733398,-1860.89221191,13.85636234, 2.5);
        SCM(playerid, BELA, "| Strugara | {BFC0C2}zatvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u strugari, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 1643.50402832,-1718.33447266,14.80937481)) // FBI
{
    if(IgracPolicajac(playerid) || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(fbikapija, 1643.50402832,-1718.33447266,14.80937481,2.500);
        SCM(playerid, BELA, "| FBI | {BFC0C2}zatvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan PD/FBI/SWAT, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 1506.50244141,-1342.02062988,16.96203995)) // Hitman
{
    if(PI[playerid][Clan] == 8 || PI[playerid][Lider] == 8 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(hitmanvrata, 1506.50244141,-1342.02062988,16.96203995,3.000);
        SCM(playerid, BELA, "| LSCA | {BFC0C2}zatvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u agenciji, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 1214.68786621,-1842.05627441,14.05750275)) // Taxi 1
{
    if(PI[playerid][Posao] == POSAO_TAKSISTA || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(taxikapija[0], 1214.68786621,-1842.05627441,14.05750275,3.000);
        SCM(playerid, BELA, "| Taxi Company | {BFC0C2}zatvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u Taxi Kompaniji, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 1270.04748535,-1841.98120117,14.07211113)) // Taxi 2
{
    if(PI[playerid][Posao] == POSAO_TAKSISTA || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(taxikapija[1], 1270.04748535,-1841.98120117,14.07211113,3.000);
        SCM(playerid, BELA, "| Taxi Company | {BFC0C2}zatvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste zaposleni u Taxi Kompaniji, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 25.0, 2231.34960938,-2212.78417969,13.80136967)) // LSB KAPIJE
{
    if(PI[playerid][Clan] == 12 || PI[playerid][Lider] == 13 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(lsbkapija[0], 2231.34960938,-2212.78417969,13.80136967,2.500);
MoveDynamicObject(lsbkapija[1], 2236.90625000,-2218.44287109,13.80136967,2.500);
        SCM(playerid, BELA, "| LSB | {BFC0C2}otvarate kapiju baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan bande, ne mozete pomerati ovu kapiju.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2178.61621094,-2255.15771484,16.04496765)) // LSB VRATA
{
    if(PI[playerid][Clan] == 12 || PI[playerid][Lider] == 13 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(lsbvrata, 2178.61621094,-2255.15771484,16.04496765, 2.500);
        SCM(playerid, BELA, "| LSB | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan bande, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 313.41583252,-1558.09680176,31.15325928)) // SWAT KAPIJA 1
{
    if(PI[playerid][Clan] == 3 || PI[playerid][Lider] == 3 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(swatkapija1, 313.41583252, -1558.09680176, 31.15325928, 2.500);
        SCM(playerid, BELA, "| SWAT | {BFC0C2}zatvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan bande, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 366.98184204,-1465.99951172,30.30373955)) // SWAT KAPIJA 2
{
    if(PI[playerid][Clan] == 3 || PI[playerid][Lider] == 3 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(swatkapija2, 366.98184204, -1465.99951172, 30.30373955, 2.500);
        SCM(playerid, BELA, "| SWAT | {BFC0C2}zatvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan SWAT, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2803.57128906,-1468.45385742,16.96561432)) // NGR KAPIJA
{
    if(PI[playerid][Clan] == 13 || PI[playerid][Lider] == 13 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(ngrkapija, 2812.47128906,-1468.45385742,16.96561432, 2.500);
        SCM(playerid, BELA, "| NGR | {BFC0C2}zatvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan NGR, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2617.1999511719, 1173.1999511719, 13.60000038147)) // MR KAPIJA
{
    if(PI[playerid][Clan] == 14 || PI[playerid][Lider] == 14 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(ffkapija, 2617.1999511719, 1173.1999511719, 13.60000038147,2.500, 0, 0, 270.25);
        SCM(playerid, BELA, "| FF | {BFC0C2}zatvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan FF, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 2416.39990234,1033.09997559,12.60000038)) // MR KAPIJA
{
    if(PI[playerid][Clan] == 15 || PI[playerid][Lider] == 15 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(mrkapija, 2416.39990234,1033.09997559,12.60000038, 2.500,0.00000000,0.00000000,270.00000000);
        SCM(playerid, BELA, "| MR | {BFC0C2}zatvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan MR, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 815.00097656,-1439.51232910,16.42875290)) // RM KAPIJA
{
    if(PI[playerid][Clan] == 17 || PI[playerid][Lider] == 17 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(rmkapija1, 815.00097656,-1439.51232910,16.42875290, 2.500);
        SCM(playerid, BELA, "| RM | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan RM, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 867.19101562,-1471.00756836,16.52072906)) // RM KAPIJA
{
    if(PI[playerid][Clan] == 17 || PI[playerid][Lider] == 17 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(rmkapija2, 867.29101562,-1471.00756836,16.52072906, 2.500);
        SCM(playerid, BELA, "| RM | {BFC0C2}otvarate vrata baze.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste clan RM, ne mozete pomerati ova vrata.");
}
else if(IsPlayerInRangeOfPoint(playerid, 15.0, 217.15054321289, -1392.3153076172, 51.890491485596)) // Anton Jarmek kapija
{
    if(PI[playerid][Kuca] == 317 || PI[playerid][Renta] == 317 || IsPlayerAdmin(playerid))
    {
        MoveDynamicObject(kapija1_antonjarmek, 217.15054321289, -1392.3153076172, 51.890491485596, 2.500);
    }
    else return SCM(playerid, CRVENA, "SpeedAC | Niste vlasnik/stanar kuce, ne mozete pomerati ova vrata.");
}
else return SCM(playerid, CRVENA, "SpeedAC | Niste blizu kapije.");
format(CmdString, 64, "** %s uzima daljinski upravljac i zatvara kapiju.", hIme);
ProxDetector(10.0, playerid, CmdString, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
return 1;
}


Gde to da copy kako se zove naslow u pawnu?


Izbaci mi Erore i nemogu upaliti server!
Poslednja Izmena: Avgust 20, 2012, 10:19:45 PRE PODNE od Thom