GATE BUG
#1

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:



Reply
#2

download new streamer (I think it's 2.6.2)
Reply
#3

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

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

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)