Command /paintjob & save paintjob -
CaTaLinU - 20.01.2012
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....
Re: Command /paintjob & save paintjob -
BleverCastard - 20.01.2012
You will have to make the Save bit but what do you use, ZCMD?
Re: Command /paintjob & save paintjob -
CaTaLinU - 20.01.2012
i think so
i have found #include <zcmd>
the GM its not made by me, i have downloaded it
Re: Command /paintjob & save paintjob -
BleverCastard - 20.01.2012
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.
Re: Command /paintjob & save paintjob -
CaTaLinU - 20.01.2012
It's not good
differ so much from other commands
Re: Command /paintjob & save paintjob -
BleverCastard - 20.01.2012
Well then Alter it like I said, Change the variables, change it to what you need.
Re: Command /paintjob & save paintjob -
CaTaLinU - 20.01.2012
i dont know how
Re: Command /paintjob & save paintjob -
Bogdan1992 - 20.01.2012
PHP код:
COMMAND:cc(playerid, params[])
{
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;
}
Re: Command /paintjob & save paintjob -
BleverCastard - 20.01.2012
Quote:
Originally Posted by CaTaLinU
i dont know how
|
And your developing a GameMode? o.O