/Lock command
#2

pawn Код:
stock LockVehicle(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConencted(i))
        {
            SetVehicleParamsForPlayer(vehicleid, i, 0, 1);
            VehicleLocked[vehicleid] = true;
        }
    }
    return 1;
}

stock UnlockVehicle(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConencted(i))
        {
            SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
            VehicleLocked[vehicleid] = false;
        }
    }
    return 1;
}

stock IsVehicleLocked(vehicleid)
{
    return VehicleLocked[vehicleid];
}
Reply


Messages In This Thread
/Lock command - by juuleman - 15.11.2010, 14:57
Re: /Lock command - by The_Moddler - 15.11.2010, 15:49
Re: /Lock command - by juuleman - 15.11.2010, 15:54
Re: /Lock command - by The_Moddler - 15.11.2010, 15:58
Re: /Lock command - by juuleman - 15.11.2010, 16:19
Re: /Lock command - by The_Moddler - 15.11.2010, 16:31
FIXED - by juuleman - 15.11.2010, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)