Command /paintjob & save paintjob
#1

can you help me with the command /paintjob please ?

the command resembles whit /carcolor [colorid1] [colorid2]

Thank You

And if you have a script that it saves the paintjob....
Reply
#2

You will have to make the Save bit but what do you use, ZCMD?
Reply
#3

i think so
i have found #include <zcmd>

the GM its not made by me, i have downloaded it
Reply
#4

Here's mine
Код:
CMD:colourcar(playerid, params[]) {
	if(jobVariables[playerVariables[playerid][pJob]][jJobType] == 3) {

		new
			colors[2],
			Float: soPos[3],
			vehicleID = GetPlayerVehicleID(playerid);

		if(sscanf(params, "dd", colors[0], colors[1])) {
			return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/colourcar [colour 1] [colour 2]");
		}
		else if(vehicleID) {
			if(playerVariables[playerid][pJobDelay] == 0) { // DELAY!1
				if(GetPlayerSpeed(playerid, 0) == 0) {
					if(colors[0] >= 0 && colors[0] < 256 && colors[1] >= 0 && colors[1] < 256) {

						GetVehiclePos(vehicleID, soPos[0], soPos[1], soPos[2]);
						PlayerPlaySoundEx(1134, soPos[0], soPos[1], soPos[2]);

						ChangeVehicleColor(vehicleID, colors[0], colors[1]);

						foreach(Player, v) {
							if(playerVariables[v][pCarID] == vehicleID) {
								playerVariables[v][pCarColour][0] = colors[0];
								playerVariables[v][pCarColour][1] = colors[1];
							}
						}
						SendClientMessage(playerid, COLOR_WHITE, "You have resprayed your vehicle.");
						playerVariables[playerid][pJobDelay] = 60;
					}
					else SendClientMessage(playerid, COLOR_WHITE, "Valid vehicle colours are 0 to 255.");
				}
				else SendClientMessage(playerid, COLOR_WHITE, "You must stop your vehicle first.");
			}
			else SendClientMessage(playerid, COLOR_WHITE, "Please wait your job reload time.");
		}
	}
	return 1;
}
have to alter it to your needs.
Reply
#5

It's not good
differ so much from other commands
Reply
#6

Well then Alter it like I said, Change the variables, change it to what you need.
Reply
#7

i dont know how
Reply
#8

PHP код:
COMMAND:cc(playeridparams[])
{
    new 
color1,color2,vid GetPlayerVehicleID(playerid),pstate GetPlayerState(playerid);
    if(
sscanf(params"ii"color1))    return SendClientMessage(playerid,COLOR_LIGHTBLUE"USAGE: {FFFFFF}/cc [color 1] [color 2]"); //You don't need to add the second color if you don't want
    
if(pstate != PLAYER_STATE_DRIVER)    return SendClientMessage(playerid,COLOR_RED,"ERROR: {FFFFFF}You must be the driver of a vehicle to change your car colour.");
    
ChangeVehicleColor(vid,color1,color2);
    
SendClientMessage(playerid,COLOR_RED,"SYSTEM: {FFFFFF}You have successfully changed the colour of your vehicle.");
    return 
1;

Reply
#9

Quote:
Originally Posted by CaTaLinU
Посмотреть сообщение
i dont know how
And your developing a GameMode? o.O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)