26.03.2011, 06:45

With this simple script is all the cars on your server will be wound with the lights on.
PHP код:
/*
======================================================
|[FS]always running engine + lights by [omegakai]Games |
======================================================
*/
#include <a_samp>
new engine,lights,alarm,doors,bonnet,boot,objective;
forward inclusion();
public OnFilterScriptInit()
{
SetTimer("inclusion",5000,1);
return 1;
}
public inclusion()
{
for(new i=0; i<1000; i++) //1000-the number of cars on the server
{
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(i,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
return 1;
}