Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- new Timer;
- forward ChangeColor();
- public OnFilterScriptInit()
- {
- Timer = SetTimer("ChangeColor", 80, 1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(Timer);
- return 1;
- }
- public ChangeColor()
- {
- for (new i=0;i<MAX_VEHICLES;i++)
- {
- new Float:X,Float:Y,Float:Z;
- GetVehiclePos(i, X,Y,Z);
- if (X != 0.0)
- {
- new color1 = random(255);
- new color2 = random(255);
- ChangeVehicleColor(i, color1, color2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment