[HELP] Tunecar by command
#7

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;
}
Reply


Messages In This Thread
[HELP] Tunecar by command - by Larsey123IsMe - 04.12.2010, 12:47
Re: [HELP] Tunecar by command - by iggy1 - 04.12.2010, 12:55
Re: [HELP] Tunecar by command - by Larsey123IsMe - 04.12.2010, 12:59
Re: [HELP] Tunecar by command - by rjjj - 04.12.2010, 13:03
Re: [HELP] Tunecar by command - by iggy1 - 04.12.2010, 13:06
Re: [HELP] Tunecar by command - by Larsey123IsMe - 04.12.2010, 13:08
Re: [HELP] Tunecar by command - by The_Gangstas - 04.12.2010, 13:10
Re: [HELP] Tunecar by command - by iggy1 - 04.12.2010, 13:21
Re: [HELP] Tunecar by command - by Larsey123IsMe - 04.12.2010, 14:05
Re: [HELP] Tunecar by command - by papedo - 04.12.2010, 16:21

Forum Jump:


Users browsing this thread: 2 Guest(s)