Object won't destroy after using /vkill [VehID]
#2

Try this.

pawn Код:
dcmd_vkill(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 1 || AccInfo[playerid][pVip] >= 1)
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Usage: /vkill [VehicleID]") &&
        SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Function: Will destroy specified vehicle");
        new vid;
        vid = strval(params);
        if(GetVehicleModel(vid) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Invalid Vehicle ID");
        SendCommandToAdmins(playerid,"vkill");
        DestroyObject(SirenObject[vid]);
        DelVehicle(vid);
        new string[64];
        format(string,sizeof(string),"You have destroyed Vehicle ID: %d", vid);
        return SendClientMessage(playerid, BlueMsg, string);
    }
    else return ErrorMessages(playerid, 1);
}
Reply


Messages In This Thread
Object won't destroy after using /vkill [VehID] - by kbalor - 25.08.2012, 19:23
Re: Object won't destroy after using /vkill [VehID] - by Camacorn - 25.08.2012, 19:32
Re: Object won't destroy after using /vkill [VehID] - by kbalor - 25.08.2012, 19:46
Re: Object won't destroy after using /vkill [VehID] - by Camacorn - 25.08.2012, 19:48
Re: Object won't destroy after using /vkill [VehID] - by kbalor - 25.08.2012, 19:52
Re: Object won't destroy after using /vkill [VehID] - by kbalor - 26.08.2012, 14:14
Re: Object won't destroy after using /vkill [VehID] - by C00K13M0N$73R - 26.08.2012, 14:25

Forum Jump:


Users browsing this thread: 1 Guest(s)