04.12.2010, 13:10
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/MyCommand", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x00FF00AA,"You're not in a vehicle.");
if(IsPlayerInVehicle(playerid, 420) || IsPlayerInVehicle(playerid,431))
{
SendClientMessage(playerid,0xFFFFFFFFF,"Your veh have been tuned!");
new vehicleid = GetPlayerVehicleID(playerid);//I put it and the problem was fixed ;D
ChangeVehicleColor(vehicleid, 103, 103); //Here
AddVehicleComponent(vehicleid,1010); //Here
AddVehicleComponent(vehicleid,1001); //Here
AddVehicleComponent(vehicleid,1076); //Here
AddVehicleComponent(vehicleid,1012); //Here
}
return 1;
}
return 0;
}