Ph0eniX Posted April 21, 2014 Report Share Posted April 21, 2014 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): Quote Link to comment Share on other sites More sharing options...
CrystyXSR Posted May 10, 2014 Report Share Posted May 10, 2014 Mersi. Quote 93.119.26.23:7777 Link to comment Share on other sites More sharing options...
Veno_M_BlacK Posted May 16, 2014 Report Share Posted May 16, 2014 Foarte fain 10/10 Quote Link to comment Share on other sites More sharing options...
McH. Posted May 18, 2014 Report Share Posted May 18, 2014 Super Tare Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.