Skripta koju koristim:LARP
Detaljan opis problema: Imam problem oko kapija za garazu...Kad ukucam /gateopen nece da se otvaraju a pise text kao da se otvaraju... a PD kapija se jedna otvori ali ostane i zatvorena Kako to da napravim ???
Dio scripte :
{
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,"A garage is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens a garage.", 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))
{
DestroyObject( pdgate2 );
pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869);
SetTimer("GateClose5", 6000, 0);
SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 6 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if (PlayerToPoint(15, playerid,2720.3772,-2409.7523,12.6))
{
MoveObject(armygate1,2720.3772, -2401.2523, 12.6, 3.5);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if (PlayerToPoint(15, playerid,2720.3772,-2508.3069,12.6))
{
MoveObject(armygate2,2720.3772, -2499.8069, 12.6, 3.5);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if (PlayerToPoint(15, playerid,1534.9020,-1451.5979,14.4882))
{
MoveObject(fbigate,1534.9020,-1451.5979,20.4882, 1.5);
SetTimer("GateClose3", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if (PlayerToPoint(15, playerid,1643.3379,-1714.9338,15.3067))
{
MoveObject(hspdgate,1643.3379,-1705.9338,15.3067, 1.5);
SetTimer("GateClose4", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"HSPD gate is opened and will close in 7 seconds.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens hspd gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else { SendClientMessage(playerid, COLOR_GREY,"Destination is too far."); }
}
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
S.Mod: Dodan prefix '[Pomoc]' , sljedeći puta tema ide pod kljuÄ !
Ispred stavi [POMOC] i objasni bolje jer ja te nista nisam skuzio
Ove kapije su radile sve normalno... i ja sam ubacio ovaj novi sreamer za objekte i posle toga kapije nece da se otvore ili se ujedno otvore i ostanu zatvorene !
Kapije nemoj streamat,neces ih imat tolko da ih moras streamat ili stavi MoveDynamicObject umjesto MoveObject ako koristis incognitov