23.04.2010, 21:25
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
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