Jump to content

Recommended Posts

Posted

new avcc[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
avcc[playerid] = 0;
return 1;
}
CMD:acc(playerid,params[])
{
new acctime;
if(avcc[playerid] == 0)
{
avcc[playerid] = 1;
acctime = SetTimerEx("AutoVehicleColorChange",100,1,"i",playerid);
SendClientMessage(playerid,-1,"Auto Change Color activated!");
}
else if(avcc[playerid] == 1)
{
avcc[playerid] = 0;
KillTimer(acctime);
SendClientMessage(playerid,-1,"Auto Change Color deactivated!");
}
return 1;
}
forward AutoVehicleColorChange(playerid);
public AutoVehicleColorChange(playerid)
{
if (avcc[playerid]==1)
{
if (IsPlayerInAnyVehicle(playerid)&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
new rand = random(126)+0;
new rand1 = random(126)+0;
ChangeVehicleColor(vehicleid, rand, rand1);
}
}
return 1;
}
Nu am creeat un FS deoarece pt acest lucru nu se merita :) daca va da ceva warninguri / errori lasati reply. PS: Acest "Filter-Script" a fost creeat la cererea lu' crysty.
Nume: crysty
Nume FS: vcc
Descriere: comanda /vcc pt. a schimba culorile masinii din sec in sec
Poze(optional):

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.