13.11.2010, 01:21
So i wanted to remake my vehicle mod saving system, i decided to uses callback OnVehicleMod.
I wanted to remove a vehicle component - nitrous - if player buys it but for no reason it wont take it off, already checked everything should work fine - i added A Client message after that function, message shows up but component wont be taken off. .
Is it a bug or it should be like that?
example script.
Ofcourse as i wrote, message shows but component wont be taken off.
I wanted to remove a vehicle component - nitrous - if player buys it but for no reason it wont take it off, already checked everything should work fine - i added A Client message after that function, message shows up but component wont be taken off. .
Is it a bug or it should be like that?
example script.
pawn Code:
switch(componentid)
{
case 1008,1009,1010: // nitro
{
SendClientMessage(playerid,COLOR_GREY,"* Sorry, not allowed.");
RemoveVehicleComponent(vehicleid,componentid);
}
}