Car Colors
#1

Ok so i followed this person instruction(https://sampforum.blast.hk/showthread.php?tid=499817) and made a car color system but i have a issue, each time i respawn the cars it wont set it to the team color but when the server restarts it will set to the color i set it to but when i /respawnallcars it sets to the default color ...

Код:
CMD:respawncars(playerid,params[])
{
	if(IsPlayerAdmin(playerid) || pInfo[playerid][Admin] >= 1)
	{
       	SendClientMessageToAll(-1,"{F81414}[WARNING]:{FFFFFF} All unoccupied vehicles will be automatically respawned in {F81414}10 seconds.");
	   	SetTimer("crs",10000,false);
		CommandToAdmins(playerid,"respawncars");
	}
	else return ShowMessage(playerid, error, 1);
	return 1;
}
forward crs(carid);
public crs()
{

	for(new i=0; i<MAX_VEHICLES; i++)
	{
		if(UnoccupiedVehicle(i))
		{
			SetVehicleToRespawn(i);
		}
	}
	SendClientMessageToAll(-1,"{F81414}[RESPAWNED]: {FFFFFF}All unoccupied vehicles have been successfully respawned.");
}
Reply


Messages In This Thread
Car Colors - by 1fret - 16.02.2017, 02:59
Re: Car Colors - by Sew_Sumi - 16.02.2017, 03:17
Re: Car Colors - by ISmokezU - 16.02.2017, 03:25
Re: Car Colors - by Sew_Sumi - 16.02.2017, 03:40
Re: Car Colors - by 1fret - 16.02.2017, 03:44
Re: Car Colors - by Sew_Sumi - 16.02.2017, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)