Need Help
#1

how to make when player have wantedstar more than 6 the curfew will turn off and when he have less than 6 the curfew will turn off

pawn Код:
forward AutoCurfew();
public AutoCurfew()
{
    for(new i=0; i < MAX_PLAYERS; i++)
     {
        if(IsPlayerConnected(i))
        {
            if(WantedLevel[i] >= 6)
            {
                acurfew = 1;
                    SendClientMessageToAll(0x00F600AA, "Curfew turn on");
            }
            if(WantedLevel[i] <= 5)
            {
                acurfew = 0;
                    SendClientMessageToAll(0x00F600AA, "Curfew turn off");
            }
        }
    }
    return 1;
}
i just make it by myself but it cann't use
Reply


Messages In This Thread
Need Help - by xinix000 - 27.10.2010, 14:52
Re: Need Help - by randomkid88 - 27.10.2010, 15:03
Re: Need Help - by xinix000 - 27.10.2010, 15:08
Re: Need Help - by randomkid88 - 27.10.2010, 15:12
Re: Need Help - by xinix000 - 27.10.2010, 15:22

Forum Jump:


Users browsing this thread: 1 Guest(s)