Command /paintjob & save paintjob
#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


Messages In This Thread
Command /paintjob & save paintjob - by CaTaLinU - 20.01.2012, 18:38
Re: Command /paintjob & save paintjob - by BleverCastard - 20.01.2012, 18:42
Re: Command /paintjob & save paintjob - by CaTaLinU - 20.01.2012, 18:44
Re: Command /paintjob & save paintjob - by BleverCastard - 20.01.2012, 18:46
Re: Command /paintjob & save paintjob - by CaTaLinU - 20.01.2012, 19:25
Re: Command /paintjob & save paintjob - by BleverCastard - 20.01.2012, 19:30
Re: Command /paintjob & save paintjob - by CaTaLinU - 20.01.2012, 19:40
Re: Command /paintjob & save paintjob - by Bogdan1992 - 20.01.2012, 19:44
Re: Command /paintjob & save paintjob - by BleverCastard - 20.01.2012, 19:55

Forum Jump:


Users browsing this thread: 2 Guest(s)