24.02.2009, 22:50
GetPlayerVehicleID is not a Model. This is number of vehicle in your map.
Код:
if(strcmp(cmd,"/tuning",true) == 0) { if(AccountInfo[playerid][AdminLevel] >= 1) { if(IsPlayerInAnyVehicle(playerid)) { new carro = GetVehicleModel(GetPlayerVehicleID(playerid)); if(carro == 562 || carro == 565 || carro == 559 || carro == 561) ChangeVehicleColor(carro, 6,6); AddVehicleComponent(carro, 1010); AddVehicleComponent(carro, 1087); } else { SendClientMessage(playerid,Erro,"[ERROR] This car not tuning"); } } else { SendClientMessage(playerid,Erro,"Need a car"); } } else { SendClientMessage(playerid,Erro,"You do not have permission to use this command"); } return 1; }