[POMOC]Kapija se ne otvara

Započeo Sh44Rawy <3, Maj 24, 2012, 22:04:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Techland(CLRP)
Detaljan opis problema:Kad otvorim kapiju ona se digne ali ostane dole opet,kao neka dinamicna :/
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.zaslike.com/viewer.php?file=uay8gzlwpflci7z95nzs.jpg
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy

BUMP

Hoce li mi itko pomoci? pls,nemogu bez ovoga nikako igrati :/
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy

mozda u gm-u imas jos negde tu rampu?

Nema pretrazio sam vise puta..
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy


Stavi u kod koordinau kapije sa komandom i možda imaš negdje CreateObject tu rampu ?
Moraš imat jer ti ostaje na mjestu.
Traži možda naÄ'eÅ¡,ako si tražio onda pogledaj joÅ¡ jednom.
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N

Citat: By FlasH poslato Maj 25, 2012, 12:17:06 POSLE PODNE
Stavi u kod koordinau kapije sa komandom i možda imaš negdje CreateObject tu rampu ?
Moraš imat jer ti ostaje na mjestu.
Traži možda naÄ'eÅ¡,ako si tražio onda pogledaj joÅ¡ jednom.

Trazio sam nema nigdje pod create objects,ima samo pod /otvorikapiju..tj ima samo tamo di treba i biti,

Citat: dock poslato Maj 25, 2012, 12:08:12 POSLE PODNE
Daj komandu za otvaranje

evo ti kodovi
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))
{
      MoveObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
      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_PURPLE,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_PURPLE,COLOR_PURPLE);
}
//SFPD KAPIJA
else if (PlayerToPoint(15, playerid,-1636.5587158203,688.26141357422,8.9608917236328))
{
      MoveObject(sfpdgate,-1646.0587158203,688.26141357422,8.9608917236328, 1.5);
      MoveObject(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_PURPLE,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))
    {
        MoveObject(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_PURPLE,COLOR_PURPLE);
    }
    else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); }
}
else return SendClientMessage(playerid, COLOR_GREY,"Nemate daljinski od kapije/rampe.");
    return 1;
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy

BUMP nisam jos rijesio..Help PLS
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy


Citat: [RG] mexo poslato Maj 28, 2012, 22:24:02 POSLE PODNE
pošali mi public GateClose

evo :

}
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))
{
      MoveObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
      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_PURPLE,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_PURPLE,COLOR_PURPLE);
}
//SFPD KAPIJA
else if (PlayerToPoint(15, playerid,-1636.5587158203,688.26141357422,8.9608917236328))
{
      MoveObject(sfpdgate,-1646.0587158203,688.26141357422,8.9608917236328, 1.5);
      MoveObject(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_PURPLE,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))
    {
        MoveObject(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_PURPLE,COLOR_PURPLE);
    }
    else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); }
}
else return SendClientMessage(playerid, COLOR_GREY,"Nemate daljinski od kapije/rampe.");
    return 1;
}
if(!strcmp(cmdtext, "/gateclose", true) || !strcmp(cmdtext, "/zatvorikapiju", 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))
{
      MoveObject(pdgate1,1589.053344,-1638.123168,14.122960, 0.8);
      SendClientMessage(playerid, COLOR_BLUE,"Garaza je zatvorena.");
      GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), "* %s uzima daljinski i zatvara garazu.", sendername);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
}
else if (PlayerToPoint(15, playerid,1544.700317,-1630.735717,13.096980))
{
    DestroyDynamicObject( pdgate3 );
      pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869);
      SetTimer("GateClose5", 6000, 0);
      SendClientMessage(playerid, COLOR_BLUE,"Kapija je zatvorena.");
      GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), "* %s uzima daljinski i zatvara kapiju.", sendername);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
//SFPD KAPIJA
else if (PlayerToPoint(15, playerid,-1636.5587158203,688.26141357422,8.9608917236328))
{
      MoveObject(sfpdgate,-1636.5587158203,688.26141357422,8.9608917236328, 1.5);
      MoveObject(sfpdgate1,-1617.5162353516,688.26141357422,8.9608917236328, 1.5);
      SendClientMessage(playerid, COLOR_BLUE,"SFPD kapija je zatvorena.");
      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_PURPLE,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))
    {
        MoveObject(rusgate,-2127.4079589844,-80.801971435547,37.093704223633,1);
        SendClientMessage(playerid, COLOR_BLUE,"RM Kapija je zatvorena.");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "* %s uzima daljinski i zatvara RM kapiju.", sendername);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else { SendClientMessage(playerid, COLOR_GREY,"Destinacija je previse udaljena."); }
}
else return SendClientMessage(playerid, COLOR_GREY,"Nemate daljinski od kapije/rampe.");
    return 1;
}
Offensive RolePlay

Offensive Gaming Forum Super Moderator | www.offensive-samp.com | sh44Rawy