Only ONE error. Please?..
#2

Try this:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 2) // THIS IS THE 269, 299 IS THE END OF THE SCRIPT
    {
        new CarID = GetPlayerVehicleID(playerid);
        if(CarID==copcar1)
        {
            if(Member[playerid] != 1)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,COLOR_RED,"Your Not Authorization To Use This Cop Car!");
            }
        }
        if(CarID==copcar2)
        {
            if (Member[playerid] != 1)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,COLOR_RED,"Your Not Authorization To Use This Cop Car!");
            }
        }
        if(CarID==copcar3)
        {
            if(Leader[playerid] != 1)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,COLOR_RED,"This vehicle is only drivable by the Chief!");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Only ONE error. Please?.. - by Facepunch - 07.01.2011, 16:09
Re: Only ONE error. Please?.. - by Toreno - 07.01.2011, 16:13
Re: Only ONE error. Please?.. - by Mariooo - 07.01.2011, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)