automatic Gates for Cops
#1

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:
Код:
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);
}
PS: I have use this tutorial: https://sampwiki.blast.hk/wiki/Automatic_Gates

Sorry for my bad english

MfG
Reply


Messages In This Thread
automatic Gates for Cops - by mofa-killer - 06.07.2010, 12:24
Re: automatic Gates for Cops - by DJBluefader - 06.07.2010, 12:27
AW: automatic Gates for Cops - by mofa-killer - 06.07.2010, 12:33
Re: automatic Gates for Cops - by DJBluefader - 06.07.2010, 12:49
AW: automatic Gates for Cops - by mofa-killer - 06.07.2010, 13:10
Re: automatic Gates for Cops - by TheKingOfSamp - 06.07.2010, 13:12
Re: automatic Gates for Cops - by DJBluefader - 06.07.2010, 13:15
AW: automatic Gates for Cops - by mofa-killer - 06.07.2010, 13:31
AW: automatic Gates for Cops - by mofa-killer - 06.07.2010, 14:32
Re: automatic Gates for Cops - by Cameltoe - 06.07.2010, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)