03.03.2010, 20:33
Hey guys. I was making my gate opening and close with sprint and jump
This is the code
Well. 2 problems.
It works when I am on foot. but not when I am in a car
When I am in a vehcile it opens when I stand close to it and move with W and S xD
on foot it works that I have to do jump and sprint
And it works for everyone not only for
if(GetPlayerColor(playerid) == 0x2641FEAA || 0x33AA33AA)
Please help
This is the code
Код:
if ((newkeys & 8) && !(oldkeys & 8)) if(IsPlayerInRangeOfPoint(playerid, 4.0, 1540.6035,-1626.6842,13.3828)) { if(GetPlayerColor(playerid) == 0x2641FEAA || 0x33AA33AA) { MoveObject(lspdgate,1539.6375732422,-1619.1240234375,12.202730178833, 2.0); } else { SendClientMessage(playerid, 0x33AA33AA, "You are not part of the UA or LSP!"); } return 1; }
It works when I am on foot. but not when I am in a car
When I am in a vehcile it opens when I stand close to it and move with W and S xD
on foot it works that I have to do jump and sprint
And it works for everyone not only for
if(GetPlayerColor(playerid) == 0x2641FEAA || 0x33AA33AA)
Please help