FANDOM


Ovaj callback se poziva kada je auto modovan (pay 'n' spray shop)

Parametri Edit

(playerid, vehicleid, componentid)
playerid - ID igraca u vozilu
vehicleid - ID modovanog vozila
componentid - ID komponente koja je dodana na vozilo
return - 0 - izbegavanje bugova i crasha kod igraca

Primer Edit

public OnVehicleMod(playerid,vehicleid,componentid)
{
    printf("Vozilo %d je modifikovano od strane %d sa komponentom %d",vehicleid,playerid,componentid);
    if(GetPlayerInterior(playerid) == 0)
    {
        BanEx(playerid, "Tuning Hacks"); // Anti-tuning hack
        //sta ce se desiti... (prikazite neki dialog, scm...)
    }
    return 1;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.