Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnVehicleSpawn(vehicleid)
- {
- VehProtection(vehicleid);
- new vFile[50];
- for(new i = 0; i < sizeof(VoziloInfo); i++)
- {
- format(vFile, sizeof(vFile), AUTO_FILE, i);
- if(fexist(vFile))
- {
- if(vehicleid == VoziloInfo[i][vID])
- {
- if(VoziloInfo[i][vSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
- for(new id = 1; id <= 17; id++)
- {
- if(VoziloInfo[i][vMod][id]!=0) { AddVehicleComponent(vehicleid,VoziloInfo[i][vMod][id]); }
- }
- if(VoziloInfo[i][vMod][0]>=0) { ChangeVehiclePaintjob(vehicleid,VoziloInfo[i][vMod][0]); }
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment