16.02.2017, 02:59
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.");
}



