/changecolor command
#5

This is the one i use,
Things are re-arranged, Things arent there but it works..

[code=Working one]
CMD:vcolour(playerid, params[])
{
new colour1, colour2;
if(admin[playerid] <= 3) return SendClientMessage(playerid, COLOR_RED, "You need to be admin");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle to use this command");
if(sscanf(params, "ii", colour1, colour2)) return SendClientMessage(playerid, COLOR_BLUE, "Usage: /vcolour [Colour1] [Colour2]");

new vehicleid = GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, colour1, colour2);
SendClientMessage(playerid, COLOR_BLUE, "Vehicle colour changed");
return 1;
}[/code]

I edited it so only your admins can use it,
Also its in ZCMD, I can edit it if you want
Reply


Messages In This Thread
/changecolor command - by Dolph - 23.04.2010, 17:01
Re: /changecolor command - by security - 23.04.2010, 20:39
Re: /changecolor command - by Torran - 23.04.2010, 20:44
Re: /changecolor command - by Dolph - 23.04.2010, 20:54
Re: /changecolor command - by Torran - 23.04.2010, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)