SA-MP Forums Archive
OnVehicleDeath - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnVehicleDeath (/showthread.php?tid=103640)



OnVehicleDeath - Jakku - 20.10.2009

What is wrong with this?

pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{

    if(vehicleid == BuyInfernus)
    {
    SendClientMessage(killerid,COLOR_ELGGREEN, "Your Infernus has been destroyed!");
    OwningInfernus[killerid] = 0;
    }
    else if(vehicleid == BuySavanna)
    {
    SendClientMessage(killerid,COLOR_ELGGREEN, "Your Savanna has been destroyed!");
    OwningSavanna[killerid] = 0;
    }
    else if(vehicleid == BuyManana)
    {
    SendClientMessage(killerid,COLOR_ELGGREEN, "Your Manana has been destroyed!");
    OwningManana[killerid] = 0;
    }
    else if(vehicleid == BuyHuntley)
    {
    SendClientMessage(killerid,COLOR_ELGGREEN, "Your Huntley has been destroyed!");
    OwningHuntley[killerid] = 0;
    }
    if(vehicleid == BuySultan)
    {
    SendClientMessage(killerid,COLOR_ELGGREEN, "Your Sultan has been destroyed!");
    OwningSultan[killerid] = 0;
    }
  return 1;
}