[HELP] Destroying Cars
#1

I need a command to destroy the cars of the variables CarVIP[playerid] and caradm[playerid]. I tried and failed.

Look this:

pawn Код:
if(strcmp(cmd, "/respawncars", true) == 0 || strcmp(cmd, "/rc", true) == 0)
{
    ResetCars();
    return 1;
}
pawn Код:
stock ResetCars(playerid)
{
    for( new i = 0; i < MAX_VEHICLES; i++ )
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(IsPlayerInVehicle(playerid, CarVIP[playerid] && caradm[playerid])) {
            DestroyVehicle(vehicleid);
        }
    }
}
Fail
Reply


Messages In This Thread
[HELP] Destroying Cars - by [AF]Junior - 07.08.2011, 01:03
AW: [HELP] Destroying Cars - by Nero_3D - 07.08.2011, 01:18
Re: [HELP] Destroying Cars - by Grim_ - 07.08.2011, 01:19
Re: [HELP] Destroying Cars - by [AF]Junior - 07.08.2011, 01:26
Re: [HELP] Destroying Cars - by dowster - 07.08.2011, 03:10
Re: [HELP] Destroying Cars - by [AF]Junior - 07.08.2011, 03:27
Re: [HELP] Destroying Cars - by MadeMan - 07.08.2011, 08:36

Forum Jump:


Users browsing this thread: 3 Guest(s)