/carlock
#4

Give this a try, should work...

pawn Код:
if(!strcmp(cmd, "/carlock", true, 8))
{
    if(GetClosestVehicle(playerid, 5))
    {
        for(new i = 0; i != MAX_PLAYERS; i++)
        {
            if(!strcmp(CarSystem[GetClosestVehicle(playerid,5)][Carowner], pName(playerid), true))
            {
                CarLock[GetClosestVehicle(playerid,5)] = 1;
                SetVehicleParamsForPlayer(GetClosestVehicle(playerid,5),i,0,1);
                new str[95];
                format(str, sizeof(str), "*%s presses a key which locks the doors of the vehicle", pName(playerid));
                ProxDetector(30.0,playerid,str,MECHAT,MECHAT,MECHAT,MECHAT,MECHAT);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
/carlock - by Mystique - 01.08.2010, 09:42
Re: /carlock - by Mystique - 03.08.2010, 18:17
Re: /carlock - by Mauzen - 03.08.2010, 18:22
Re: /carlock - by PotH3Ad - 03.08.2010, 19:02
Re: /carlock - by Kar - 03.08.2010, 19:07
Re: /carlock - by Mystique - 04.08.2010, 13:25
Re: /carlock - by Mystique - 04.08.2010, 13:43
Re: /carlock - by Mystique - 06.08.2010, 08:16
Re: /carlock - by speediekiller2 - 06.08.2010, 08:36
Re: /carlock - by Mystique - 06.08.2010, 09:28

Forum Jump:


Users browsing this thread: 6 Guest(s)