CMD:vpaint(playerid, params[])
{
if(PlayerInfo[playerid][pVip] >=1 )
{
new paintjob;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "ERROR: You're not in a vehicle.");
if(sscanf(params, "i",paintjob)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /vpaint [1-3]");
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}
CMD:vpaint(playerid, params[])
{
if(PlayerInfo[playerid][pVip] >=1 )
{
new paintjob;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "ERROR: You're not in a vehicle.");
if(sscanf(params, "i",paintjob)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /vpaint [1-3]");
if(paintjob == 1)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid), color[0], color[1]);
}
else if(paintjob == 2)
{
ChangeVehicleColor(GetPlayerVehicleID(playerid), color[0], color[1]);
}
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}
CMD:vpaint(playerid, params[])
{
if(PlayerInfo[playerid][pVip] >=1 )
{
new paintjob;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "ERROR: You're not in a vehicle.");
if(sscanf(params, "i",paintjob)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /vpaint [1-3]");
ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), paintjob);
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}
Got it to meet my personal standards, thanks for the help everyone.
|