[AJUDA] Sistema Auto Tunar Bugado
#1

Sistema totalmente bugado ele compila sem warnings/erros mais na hora de tunar o veiculo naum tuna n muda nada no veiculo me ajude porfavo

PHP код:
// =============================================================================
#include <a_samp>
#define Dialog 1000
new car;
// =============================================================================
public OnFilterScriptInit()
{
    print(
"FilterScript Auto Tunar By: Pegador");
    return 
1;
}
// =============================================================================
public OnFilterScriptExit()
{
    print(
"FilterScript Desligado");
    return 
1;
}
// =============================================================================
public OnPlayerConnect(playerid)
{
    return 
1;
}
// =============================================================================
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/autotunar"cmdtexttrue10) == 0)
    {
if(!
IsPlayerInAnyVehicle(playerid)){
    
SendClientMessage(playerid,-1,"[INFO] Voce nao esta em um carro.");
    return 
1;
}
ShowPlayerDialog(playerid1000DIALOG_STYLE_LIST"=-= Auto Tunar =-=""Auto Tunar 1\nAuto Tunar 2\nAuto Tunar 3\nAuto Tunar 4""Selecionar""Cancelar");
return 
1;
}
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 1000)
    {
        if(!
response)
            return 
true;
        else
        {
            switch (
listitem)
            {
                case 
0:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car1);
                    
PutPlayerInVehicle(playeridcar0);
                }
                case 
1:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car2);
                    
PutPlayerInVehicle(playeridcar0);
                }
                case 
2:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car3);
                    
PutPlayerInVehicle(playeridcar0);
                }
                case 
3:
                {
                    new 
string[3000];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(car,1046);
                    
AddVehicleComponent(car,1171);
                    
AddVehicleComponent(car,1149);
                    
AddVehicleComponent(car,1035);
                    
AddVehicleComponent(car,1147);
                    
AddVehicleComponent(car,1036);
                    
AddVehicleComponent(car,1040);
                    
ChangeVehiclePaintjob(car4);
                    
PutPlayerInVehicle(playeridcar0);
                }
            }
        }
        return 
1;
    }
    return 
1;

Reply
#2

o script nao esta a reconhecer o carro.
Reply
#3

ue cara isso eu sei mais me ajuda ue
Reply
#4

Se foi vocк mesmo que criou, vocк saberб onde estб o bug, e corrigi-lo facilmente.
Se nгo foi vocк que criou, por favor, dк os crйditos de quem criou, e tire o By: Pegador.
Reply
#5

Tipo lek esse fs ai criava carro tunado mais eu tirei de cria carro tunado pra auto tunar pq cria carro tunado buga o sv prefiro auto tunar o verdadeiro FS OFICIAL DE CRIAR OS VEICULOS E ESSE O

PHP код:
// =============================================================================
#include <a_samp>
#define Dialog 1000
new LipeStronda;
// =============================================================================
public OnFilterScriptInit()
{
    print(
"FilterScript Tunados Ligado ;D by: Lipe_Stronda");
    return 
1;
}
// =============================================================================
public OnFilterScriptExit()
{
    print(
"FilterScript Desligado");
    return 
1;
}
// =============================================================================
public OnPlayerConnect(playerid)
{
    return 
1;
}
// =============================================================================
public OnPlayerExitVehicle(playeridvehicleid)
{
    if(
vehicleid == LipeStronda)
    {
        
DestroyVehicle(LipeStronda);
    }
    return 
true;
}
// =============================================================================
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/tunados"cmdtexttrue10) == 0)
    {
if(!
IsPlayerInAnyVehicle(playerid)){
    
SendClientMessage(playerid,-1,"[INFO] Voce nao esta em um carro.");
    return 
1;
}
ShowPlayerDialog(playerid1000DIALOG_STYLE_LIST"=-= Carros Tunados =-=""Elegy\nSultan\nJester\nUranus""Selecionar""Cancelar");
return 
1;
}
    return 
0;
}
// =============================================================================
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 1000)
    {
        if(!
response)
            return 
true;
        else
        {
            switch (
listitem)
            {
                case 
0:
                {
                    new 
Float:P[3];
                    new 
string[150];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerPos(playeridP[0], P[1], P[2]);
                    
LipeStronda CreateVehicle(562P[0], P[1], P[2], 40.518359,59, -1);
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Elegy"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(LipeStronda1010);
                    
AddVehicleComponent(LipeStronda1037);
                    
AddVehicleComponent(LipeStronda1036);
                    
AddVehicleComponent(LipeStronda1035);
                    
AddVehicleComponent(LipeStronda1149);
                    
AddVehicleComponent(LipeStronda1147);
                    
ChangeVehiclePaintjob(LipeStronda2);
                    
PutPlayerInVehicle(playeridLipeStronda0);
                }
                case 
1:
                {
                    new 
Float:P[3];
                    new 
string[150];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerPos(playeridP[0], P[1], P[2]);
                    
LipeStronda CreateVehicle(560P[0], P[1], P[2], 40.518359,59, -1);
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Sultan"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(LipeStronda1026);
                    
AddVehicleComponent(LipeStronda1028);
                    
AddVehicleComponent(LipeStronda1010);
                    
AddVehicleComponent(LipeStronda1030);
                    
AddVehicleComponent(LipeStronda1032);
                    
AddVehicleComponent(LipeStronda1139);
                    
AddVehicleComponent(LipeStronda1140);
                    
ChangeVehiclePaintjob(LipeStronda1);
                    
PutPlayerInVehicle(playeridLipeStronda0);
                }
                case 
2:
                {
                    new 
Float:P[3];
                    new 
string[150];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerPos(playeridP[0], P[1], P[2]);
                    
LipeStronda CreateVehicle(559P[0], P[1], P[2], 40.518359,59, -1);
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Jester"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(LipeStronda1158);
                    
AddVehicleComponent(LipeStronda1010);
                    
AddVehicleComponent(LipeStronda1159);
                    
AddVehicleComponent(LipeStronda1160);
                    
AddVehicleComponent(LipeStronda1162);
                    
AddVehicleComponent(LipeStronda1068);
                    
AddVehicleComponent(LipeStronda1066);
                    
ChangeVehiclePaintjob(LipeStronda2);
                    
PutPlayerInVehicle(playeridLipeStronda0);
                }
                case 
3:
                {
                    new 
Float:P[3];
                    new 
string[150];
                    new 
pNome[MAX_PLAYER_NAME];
                    
GetPlayerPos(playeridP[0], P[1], P[2]);
                    
LipeStronda CreateVehicle(558P[0], P[1], P[2], 40.518359,59, -1);
                    
GetPlayerName(playeridpNomesizeof(pNome));
                    
format(stringsizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Uranus"pNome);
                    
SendClientMessageToAll(-1string);
                    
AddVehicleComponent(LipeStronda1088);
                    
AddVehicleComponent(LipeStronda1089);
                    
AddVehicleComponent(LipeStronda1010);
                    
AddVehicleComponent(LipeStronda1090);
                    
AddVehicleComponent(LipeStronda1092);
                    
AddVehicleComponent(LipeStronda1093);
                    
AddVehicleComponent(LipeStronda1066);
                    
AddVehicleComponent(LipeStronda1165);
                    
AddVehicleComponent(LipeStronda1168);
                    
AddVehicleComponent(LipeStronda1164);
                    
ChangeVehiclePaintjob(LipeStronda1);
                    
PutPlayerInVehicle(playeridLipeStronda0);
                }
            }
        }
        return 
1;
    }
    return 
1;

Reply
#6

Tente Isso.

pawn Код:
#include <a_samp>

#define nitro 1010
#define rodawire 1081
#define suspensao 1087

#pragma tabsize 0

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(cmdtext, "/tunar", true)==0)
        {
        SendClientMessage(playerid,-1,"Use /tunar1 | /tunar2 | /tunar3");
        }
        if (strcmp(cmdtext, "/tunar1", true)==0)
            {
            new idcarro;
            idcarro = GetPlayerVehicleID(playerid);
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
            {
            AddVehicleComponent(idcarro,1046);
            AddVehicleComponent(idcarro,1171);
            AddVehicleComponent(idcarro,1149);
            AddVehicleComponent(idcarro,1035);
            AddVehicleComponent(idcarro,1147);
            AddVehicleComponent(idcarro,1036);
            AddVehicleComponent(idcarro,1040);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
            {
            AddVehicleComponent(idcarro,1028);
            AddVehicleComponent(idcarro,1169);
            AddVehicleComponent(idcarro,1141);
            AddVehicleComponent(idcarro,1032);
            AddVehicleComponent(idcarro,1138);
            AddVehicleComponent(idcarro,1026);
            AddVehicleComponent(idcarro,1027);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
            {
            AddVehicleComponent(idcarro,1046);
            AddVehicleComponent(idcarro,1153);
            AddVehicleComponent(idcarro,1150);
            AddVehicleComponent(idcarro,1054);
            AddVehicleComponent(idcarro,1049);
            AddVehicleComponent(idcarro,1047);
            AddVehicleComponent(idcarro,1051);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
            {
            AddVehicleComponent(idcarro,1065);
            AddVehicleComponent(idcarro,1160);
            AddVehicleComponent(idcarro,1159);
            AddVehicleComponent(idcarro,1067);
            AddVehicleComponent(idcarro,1162);
            AddVehicleComponent(idcarro,1069);
            AddVehicleComponent(idcarro,1071);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
            {
            AddVehicleComponent(idcarro,1064);
            AddVehicleComponent(idcarro,1155);
            AddVehicleComponent(idcarro,1154);
            AddVehicleComponent(idcarro,1055);
            AddVehicleComponent(idcarro,1158);
            AddVehicleComponent(idcarro,1056);
            AddVehicleComponent(idcarro,1062);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
            {
            AddVehicleComponent(idcarro,1089);
            AddVehicleComponent(idcarro,1166);
            AddVehicleComponent(idcarro,1168);
            AddVehicleComponent(idcarro,1088);
            AddVehicleComponent(idcarro,1164);
            AddVehicleComponent(idcarro,1090);
            AddVehicleComponent(idcarro,1094);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
            {
            AddVehicleComponent(idcarro,1044);
            AddVehicleComponent(idcarro,1174);
            AddVehicleComponent(idcarro,1176);
            AddVehicleComponent(idcarro,1042);
            AddVehicleComponent(idcarro,1099);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
            {
            AddVehicleComponent(idcarro,1126);
            AddVehicleComponent(idcarro,1179);
            AddVehicleComponent(idcarro,1180);
            AddVehicleComponent(idcarro,1122);
            AddVehicleComponent(idcarro,1101);
            AddVehicleComponent(idcarro,1125);
            AddVehicleComponent(idcarro,1123);
            AddVehicleComponent(idcarro,1100);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
            {
            AddVehicleComponent(idcarro,1104);
            AddVehicleComponent(idcarro,1182);
            AddVehicleComponent(idcarro,1184);
            AddVehicleComponent(idcarro,1108);
            AddVehicleComponent(idcarro,1107);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
            {
            AddVehicleComponent(idcarro,1129);
            AddVehicleComponent(idcarro,1189);
            AddVehicleComponent(idcarro,1187);
            AddVehicleComponent(idcarro,1102);
            AddVehicleComponent(idcarro,1133);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 0);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
            {
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1139);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
            {
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1013);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1086);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
            {
            AddVehicleComponent(idcarro,1086);
            AddVehicleComponent(idcarro,1139);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1012);
            AddVehicleComponent(idcarro,1013);
            AddVehicleComponent(idcarro,1042);
            AddVehicleComponent(idcarro,1043);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1006);
            AddVehicleComponent(idcarro,1007);
            AddVehicleComponent(idcarro,1017);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
            {
            ChangeVehiclePaintjob(idcarro,0);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,1191);
            AddVehicleComponent(idcarro,1193);
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1134);
            AddVehicleComponent(idcarro,1137);
            }
            else
            {
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            return 1;
            }
            if (strcmp(cmdtext, "/tunar2", true)==0)
            {
            new idcarro;
            idcarro = GetPlayerVehicleID(playerid);
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
            {
            AddVehicleComponent(idcarro,1046);
            AddVehicleComponent(idcarro,1171);
            AddVehicleComponent(idcarro,1149);
            AddVehicleComponent(idcarro,1035);
            AddVehicleComponent(idcarro,1147);
            AddVehicleComponent(idcarro,1036);
            AddVehicleComponent(idcarro,1040);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
            {
            AddVehicleComponent(idcarro,1028);
            AddVehicleComponent(idcarro,1169);
            AddVehicleComponent(idcarro,1141);
            AddVehicleComponent(idcarro,1032);
            AddVehicleComponent(idcarro,1138);
            AddVehicleComponent(idcarro,1026);
            AddVehicleComponent(idcarro,1027);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
            {
            AddVehicleComponent(idcarro,1046);
            AddVehicleComponent(idcarro,1153);
            AddVehicleComponent(idcarro,1150);
            AddVehicleComponent(idcarro,1054);
            AddVehicleComponent(idcarro,1049);
            AddVehicleComponent(idcarro,1047);
            AddVehicleComponent(idcarro,1051);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
            {
            AddVehicleComponent(idcarro,1065);
            AddVehicleComponent(idcarro,1160);
            AddVehicleComponent(idcarro,1159);
            AddVehicleComponent(idcarro,1067);
            AddVehicleComponent(idcarro,1162);
            AddVehicleComponent(idcarro,1069);
            AddVehicleComponent(idcarro,1071);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
            {
            AddVehicleComponent(idcarro,1064);
            AddVehicleComponent(idcarro,1155);
            AddVehicleComponent(idcarro,1154);
            AddVehicleComponent(idcarro,1055);
            AddVehicleComponent(idcarro,1158);
            AddVehicleComponent(idcarro,1056);
            AddVehicleComponent(idcarro,1062);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
            {
            AddVehicleComponent(idcarro,1089);
            AddVehicleComponent(idcarro,1166);
            AddVehicleComponent(idcarro,1168);
            AddVehicleComponent(idcarro,1088);
            AddVehicleComponent(idcarro,1164);
            AddVehicleComponent(idcarro,1090);
            AddVehicleComponent(idcarro,1094);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
            {
            AddVehicleComponent(idcarro,1044);
            AddVehicleComponent(idcarro,1174);
            AddVehicleComponent(idcarro,1176);
            AddVehicleComponent(idcarro,1042);
            AddVehicleComponent(idcarro,1099);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
            {
            AddVehicleComponent(idcarro,1126);
            AddVehicleComponent(idcarro,1179);
            AddVehicleComponent(idcarro,1180);
            AddVehicleComponent(idcarro,1122);
            AddVehicleComponent(idcarro,1101);
            AddVehicleComponent(idcarro,1125);
            AddVehicleComponent(idcarro,1123);
            AddVehicleComponent(idcarro,1100);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
            {
            AddVehicleComponent(idcarro,1104);
            AddVehicleComponent(idcarro,1182);
            AddVehicleComponent(idcarro,1184);
            AddVehicleComponent(idcarro,1108);
            AddVehicleComponent(idcarro,1107);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
            {
            AddVehicleComponent(idcarro,1129);
            AddVehicleComponent(idcarro,1189);
            AddVehicleComponent(idcarro,1187);
            AddVehicleComponent(idcarro,1102);
            AddVehicleComponent(idcarro,1133);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 1);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
            {
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1139);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
            {
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1013);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1086);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
            {
            AddVehicleComponent(idcarro,1086);
            AddVehicleComponent(idcarro,1139);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1012);
            AddVehicleComponent(idcarro,1013);
            AddVehicleComponent(idcarro,1042);
            AddVehicleComponent(idcarro,1043);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1006);
            AddVehicleComponent(idcarro,1007);
            AddVehicleComponent(idcarro,1017);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
            {
            ChangeVehiclePaintjob(idcarro,1);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,1191);
            AddVehicleComponent(idcarro,1193);
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1134);
            AddVehicleComponent(idcarro,1137);
            }
            else
            {
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            return 1;
            }
            if (strcmp(cmdtext, "/tunar3", true)==0)
            {
            new idcarro;
            idcarro = GetPlayerVehicleID(playerid);
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
            {
            AddVehicleComponent(idcarro,1046);
            AddVehicleComponent(idcarro,1171);
            AddVehicleComponent(idcarro,1149);
            AddVehicleComponent(idcarro,1035);
            AddVehicleComponent(idcarro,1147);
            AddVehicleComponent(idcarro,1036);
            AddVehicleComponent(idcarro,1040);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
            {
            AddVehicleComponent(idcarro,1028);
            AddVehicleComponent(idcarro,1169);
            AddVehicleComponent(idcarro,1141);
            AddVehicleComponent(idcarro,1032);
            AddVehicleComponent(idcarro,1138);
            AddVehicleComponent(idcarro,1026);
            AddVehicleComponent(idcarro,1027);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
            {
            AddVehicleComponent(idcarro,1046);
            AddVehicleComponent(idcarro,1153);
            AddVehicleComponent(idcarro,1150);
            AddVehicleComponent(idcarro,1054);
            AddVehicleComponent(idcarro,1049);
            AddVehicleComponent(idcarro,1047);
            AddVehicleComponent(idcarro,1051);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
            {
            AddVehicleComponent(idcarro,1065);
            AddVehicleComponent(idcarro,1160);
            AddVehicleComponent(idcarro,1159);
            AddVehicleComponent(idcarro,1067);
            AddVehicleComponent(idcarro,1162);
            AddVehicleComponent(idcarro,1069);
            AddVehicleComponent(idcarro,1071);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
            {
            AddVehicleComponent(idcarro,1064);
            AddVehicleComponent(idcarro,1155);
            AddVehicleComponent(idcarro,1154);
            AddVehicleComponent(idcarro,1055);
            AddVehicleComponent(idcarro,1158);
            AddVehicleComponent(idcarro,1056);
            AddVehicleComponent(idcarro,1062);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
            {
            AddVehicleComponent(idcarro,1089);
            AddVehicleComponent(idcarro,1166);
            AddVehicleComponent(idcarro,1168);
            AddVehicleComponent(idcarro,1088);
            AddVehicleComponent(idcarro,1164);
            AddVehicleComponent(idcarro,1090);
            AddVehicleComponent(idcarro,1094);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
            {
            AddVehicleComponent(idcarro,1044);
            AddVehicleComponent(idcarro,1174);
            AddVehicleComponent(idcarro,1176);
            AddVehicleComponent(idcarro,1042);
            AddVehicleComponent(idcarro,1099);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
            {
            AddVehicleComponent(idcarro,1126);
            AddVehicleComponent(idcarro,1179);
            AddVehicleComponent(idcarro,1180);
            AddVehicleComponent(idcarro,1122);
            AddVehicleComponent(idcarro,1101);
            AddVehicleComponent(idcarro,1125);
            AddVehicleComponent(idcarro,1123);
            AddVehicleComponent(idcarro,1100);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
            {
            AddVehicleComponent(idcarro,1104);
            AddVehicleComponent(idcarro,1182);
            AddVehicleComponent(idcarro,1184);
            AddVehicleComponent(idcarro,1108);
            AddVehicleComponent(idcarro,1107);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
            {
            AddVehicleComponent(idcarro,1129);
            AddVehicleComponent(idcarro,1189);
            AddVehicleComponent(idcarro,1187);
            AddVehicleComponent(idcarro,1102);
            AddVehicleComponent(idcarro,1133);
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            ChangeVehiclePaintjob(idcarro, 2);
            ChangeVehicleColor(idcarro, 1, 1);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
            {
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1139);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
            {
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1013);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1086);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
            {
            AddVehicleComponent(idcarro,1086);
            AddVehicleComponent(idcarro,1139);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1012);
            AddVehicleComponent(idcarro,1013);
            AddVehicleComponent(idcarro,1042);
            AddVehicleComponent(idcarro,1043);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1006);
            AddVehicleComponent(idcarro,1007);
            AddVehicleComponent(idcarro,1017);
            }
            if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
            {
            ChangeVehiclePaintjob(idcarro,2);
            ChangeVehicleColor(idcarro, 1, 1);
            AddVehicleComponent(idcarro,1191);
            AddVehicleComponent(idcarro,1193);
            AddVehicleComponent(idcarro,1010);
            AddVehicleComponent(idcarro,1018);
            AddVehicleComponent(idcarro,1081);
            AddVehicleComponent(idcarro,1087);
            AddVehicleComponent(idcarro,1134);
            AddVehicleComponent(idcarro,1137);
            }
            else
            {
            AddVehicleComponent(idcarro,nitro);
            AddVehicleComponent(idcarro,rodawire);
            AddVehicleComponent(idcarro,suspensao);
            }
        return 1;
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    SendClientMessage(playerid, -1,"Dicas:");
    SendClientMessage(playerid, -1,"Para Tunar use /Tunar1, /Tunar2, /Tunar3");
    return 1;
}
Espero ter ajudado!
Reply
#7

eu falei q o code era meu?
isso que da querer ajudar caras igual a vc ^^
quer do jeito que ta no topo? vai estudar um pouco e faz sem precisar pedir ajuda no forum
Dйbil Mental ^^
Reply
#8

EURI ALTO NOOB ISSO Q N DA PRESTA ATENЗAO NOQ OS OUTROS PEDE
Reply
#9

Quote:
Originally Posted by [BC]Pegador[KoF]
Посмотреть сообщение
EURI ALTO NOOB ISSO Q N DA PRESTA ATENЗAO NOQ OS OUTROS PEDE
Cara, aqui nгo й lugar pra noob nгo.

Desde quando tu encuco de ser admin la do Gunners (e ficava floodando: "enquanto n me setar admin n paro de floodar") atй agora tu nгo passa de uma formiga.

O cara arruma pra vc e tu nem pra agradecer, nem olha pro code e acha ruim. Ele fez tudo o que tu pediu /* e */ sгo comentбrios, nгo hб necessidade de colocar.

Volta pra Apae lixo.

@edit

Quote:
Originally Posted by Los
Посмотреть сообщение
Nunca que isso vai funcionar. Vocк tem que obter o ID do veнculo que o player estб e armazenar na variбvel car, isso no OnDialogResponse, do mais nгo darб certo mesmo, e isso concerteza vai dar erro, pois car nгo estб definido e nгo estб sendo usado.
Tu acha q ele entendeu algo doq vc diz? rs'
Reply
#10

Magnus cala a boca falido kakakakakakaka
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)