02.05.2015, 12:30
Hello!
Why you use a loop? You have the parameter "vehicleid".
I don't know wheather you want it so.
Why you use a loop? You have the parameter "vehicleid".
PHP код:
public OnVehicleDeath(vehicleid,killerid)
{
if(Veicolo[vehicleid][Creato] == 1)
{
if(Veicolo[vehicleid][Acquistato] == 1)Veicolo[vehicleid][Distrutto] = 1;
else Veicolo[vehicleid][Distrutto] = 0;
}
return 1;
}