SA-MP Forums Archive
GATE BUG - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GATE BUG (/showthread.php?tid=318295)



GATE BUG - SumX - 14.02.2012

Hello,I have a bug at my gate...any ideas? Thank you,I tried 3 times to solve it but...no chance. I want it to open normally.

Here is the code:

[pawn]new gatepd;
gatepd = CreateDynamicObject(980, 1542.350098, -1627.757568, 15.156204, 0.0000, 0.0000, 90.0000);//gate LSPD

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys==KEY_FIRE)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(10, playerid,1538.7560,-1628.0847,13.382 || PlayerToPoint(10, playerid,1545.9342,-1627.7917,13.382)
{
MoveDynamicObject(gatepd, 1542.350098, -1627.757568, 19.156204, 4.0);
SendClientMessage(playerid, COLOR_LIGHTRED, "You opened the LSPD gate,it will close in 5 seconds.);
SetTimer("gatepdclose",3500, false);
return 1;
}
}
}
}
}
return 1;
}

forward gatepdclose();
public gatepdclose()
{
MoveDynamicObject(gatepd, 1542.350098, -1627.757568, 15.156204, 3.0);
return 1;
}[pawn]

PICS:






Re: GATE BUG - System64 - 14.02.2012

download new streamer (I think it's 2.6.2)


Re: GATE BUG - SumX - 14.02.2012

any ideas? i heard that streamer v2.6 from here isn't stable...

http://code.******.com/p/samp-stream...downloads/list


Re: GATE BUG - IstuntmanI - 14.02.2012

Quote:
Originally Posted by SumX
Посмотреть сообщение
any ideas? i heard that streamer v2.6 from here isn't stable...

http://code.******.com/p/samp-stream...downloads/list
Is -almost- very stable, use it.


Re: GATE BUG - SumX - 14.02.2012

thank you very much,when i will arrive home i will try it.