06.07.2010, 12:24
Hi,
I have searched for my problem, but i have found nothing what me help.
To my problem:
I have make gates at the LSPD. This are automatic gates. The gates will open only if the player is a Cop. I have in my script gTeam.
Can someone please help me?
Here the code for the 2 Gates:
PS: I have use this tutorial: https://sampwiki.blast.hk/wiki/Automatic_Gates
Sorry for my bad english
MfG
I have searched for my problem, but i have found nothing what me help.
To my problem:
I have make gates at the LSPD. This are automatic gates. The gates will open only if the player is a Cop. I have in my script gTeam.
Can someone please help me?
Here the code for the 2 Gates:
Код:
public CheckGate() { new lspdgate1_status; for(new i;i<MAX_PLAYERS;i++) { if(!IsPlayerConnected(i)) continue; if(IsPlayerInRangeOfPoint(i,10.0,1549.62109375, -1628.046875, 16.296792984009))lspdgate1_status=1; } if(lspdgate1_status)MoveObject(lspdgate1,1549.9049072266, -1618.0844726563, 16.296792984009,2); else MoveObject(lspdgate1,1549.62109375, -1628.046875, 16.296792984009,2); new lspdgate2_status; for(new i;i<MAX_PLAYERS;i++) { if(!IsPlayerConnected(i)) continue; if(IsPlayerInRangeOfPoint(i,10.0,1589.341796875, -1637.9111328125, 14.639354705811))lspdgate2_status=1; } if(lspdgate2_status)MoveObject(lspdgate2,1589.341796875, -1637.9111328125, 10.01442527771,2); else MoveObject(lspdgate2,1589.341796875, -1637.9111328125, 14.639354705811,2); }
Sorry for my bad english
MfG