[FilterScript] Car Color Changer(Random, zcmd)
#1

Hey, this is a car color changer(random) by me.(BackScreen).

Enjoy!

PHP Code:
#include a_samp
#include zcmd
#define function%0(%1)  forward%0(%1);public%0(%1)
new boolplayerChangeColor[MAX_PLAYERS char];
CMD:carcolor(playeridparams[]) {
    if(!
IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, -1"You need to be in a vehicle to use this command");
    
SetTimerEx("changeColor"1000true"i"playerid);
    
playerChangeColor{playerid} = true;
    return 
SendClientMessage(playerid, -1"Enjoy your car color changer ;)");
}
CMD:carcoloroff(playeridparams[]) {
    if(!
playerChangeColor{playerid})return SendClientMessage(playerid, -1"Car color is already off");
    
KillTimer(playerid);
    
playerChangeColor{playerid} = false;
    return 
SendClientMessage(playerid, -1"Your car color changer is turned off.");
}
public 
OnPlayerDisconnect(playeridreason)return playerChangeColor{playerid} = false;
function 
changeColor(playerid)return ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255)); 
Pastebin: http://pastebin.com/bC6MqZmF
Reply


Messages In This Thread
Car Color Changer(Random, zcmd) - by BackScreen - 06.12.2014, 22:28
Re: Car Color Changer(Random, zcmd) - by Alex Magaсa - 07.12.2014, 08:20
Re: Car Color Changer(Random, zcmd) - by $Bayside$ - 07.12.2014, 08:27
Re: Car Color Changer(Random, zcmd) - by BackScreen - 07.12.2014, 10:15
Re: Car Color Changer(Random, zcmd) - by StephenBrash - 07.12.2014, 13:10
Re: Car Color Changer(Random, zcmd) - by BackScreen - 07.12.2014, 13:22
Re: Car Color Changer(Random, zcmd) - by M0HAMMAD - 07.12.2014, 18:49
Re: Car Color Changer(Random, zcmd) - by BackScreen - 07.12.2014, 19:44
Re: Car Color Changer(Random, zcmd) - by Jakwob - 07.12.2014, 19:47
AW: Car Color Changer(Random, zcmd) - by Flori - 07.12.2014, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)