Remove Bike Cmd Help
#5

To delete all existing bikes with model-id 510, use this code.
It loops through all vehicle-id's, checks if each one has model-id 510, and if it matches, it will be deleted.
pawn Код:
dcmd_removebike(playerid,params[])
{
    #pragma unused params
    for (new vid; vid < MAX_VEHICLES; vid++)
    {
        if (GetVehicleModel(vid) == 510)
            DestroyVehicle(vid);
    }

    return 1;
}
Reply


Messages In This Thread
Remove Bike Cmd Help - by alishvasis - 27.02.2014, 19:16
Re: Remove Bike Cmd Help - by DexterC - 27.02.2014, 19:43
Re: Remove Bike Cmd Help - by alishvasis - 27.02.2014, 20:42
Re: Remove Bike Cmd Help - by TLN - 27.02.2014, 20:49
Re: Remove Bike Cmd Help - by PowerPC603 - 27.02.2014, 22:52
Re: Remove Bike Cmd Help - by alishvasis - 28.02.2014, 08:15
Re: Remove Bike Cmd Help - by alishvasis - 28.02.2014, 08:29
Re: Remove Bike Cmd Help - by Dystans - 28.02.2014, 08:34
Re: Remove Bike Cmd Help - by PowerPC603 - 28.02.2014, 08:34
Re: Remove Bike Cmd Help - by alishvasis - 28.02.2014, 08:41

Forum Jump:


Users browsing this thread: 1 Guest(s)