Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward VehProtection(vehicleid);
- public VehProtection(vehicleid)
- {
- new Fajl[64];
- for(new i = 0; i < sizeof(VoziloInfo); i++)
- {
- format(Fajl, sizeof(Fajl), AUTO_FILE, i);
- if(!fexist(Fajl))
- {
- if(VoziloInfo[i][vID] == vehicleid)
- {
- if(VoziloInfo[i][vSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
- }
- }
- }
- for(new i = 0; i < sizeof(MotorInfo); i++)
- {
- format(Fajl, sizeof(Fajl), MOTOR_FILE, i);
- if(!fexist(Fajl))
- {
- if(MotorInfo[i][mID] == vehicleid)
- {
- if(MotorInfo[i][mSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
- }
- }
- }
- for(new i = 0; i < sizeof(AvionInfo); i++)
- {
- format(Fajl, sizeof(Fajl), AVION_FILE, i);
- if(!fexist(Fajl))
- {
- if(AvionInfo[i][avID] == vehicleid)
- {
- if(AvionInfo[i][avSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
- }
- }
- }
- for(new i = 0; i < sizeof(PlovilaInfo); i++)
- {
- format(Fajl, sizeof(Fajl), PLOVILA_FILE, i);
- if(!fexist(Fajl))
- {
- if(PlovilaInfo[i][plID] == vehicleid)
- {
- if(PlovilaInfo[i][plSpawn] == 1) SetVehicleVirtualWorld(vehicleid, 100);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement