07.12.2011, 16:06
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(playerid, cmdtext[])
{
if (strcmp("/autotunar", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,-1,"[INFO] Voce nao esta em um carro.");
return 1;
}
ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "=-= Auto Tunar =-=", "Auto Tunar 1\nAuto Tunar 2\nAuto Tunar 3\nAuto Tunar 4", "Selecionar", "Cancelar");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1000)
{
if(!response)
return true;
else
{
switch (listitem)
{
case 0:
{
new string[3000];
new pNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(car,1046);
AddVehicleComponent(car,1171);
AddVehicleComponent(car,1149);
AddVehicleComponent(car,1035);
AddVehicleComponent(car,1147);
AddVehicleComponent(car,1036);
AddVehicleComponent(car,1040);
ChangeVehiclePaintjob(car, 1);
PutPlayerInVehicle(playerid, car, 0);
}
case 1:
{
new string[3000];
new pNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(car,1046);
AddVehicleComponent(car,1171);
AddVehicleComponent(car,1149);
AddVehicleComponent(car,1035);
AddVehicleComponent(car,1147);
AddVehicleComponent(car,1036);
AddVehicleComponent(car,1040);
ChangeVehiclePaintjob(car, 2);
PutPlayerInVehicle(playerid, car, 0);
}
case 2:
{
new string[3000];
new pNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(car,1046);
AddVehicleComponent(car,1171);
AddVehicleComponent(car,1149);
AddVehicleComponent(car,1035);
AddVehicleComponent(car,1147);
AddVehicleComponent(car,1036);
AddVehicleComponent(car,1040);
ChangeVehiclePaintjob(car, 3);
PutPlayerInVehicle(playerid, car, 0);
}
case 3:
{
new string[3000];
new pNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de Auto Tunar um {FC0000}carro {FFFFFF}, Usou {FC0000}/AutoTunar", pNome);
SendClientMessageToAll(-1, string);
AddVehicleComponent(car,1046);
AddVehicleComponent(car,1171);
AddVehicleComponent(car,1149);
AddVehicleComponent(car,1035);
AddVehicleComponent(car,1147);
AddVehicleComponent(car,1036);
AddVehicleComponent(car,1040);
ChangeVehiclePaintjob(car, 4);
PutPlayerInVehicle(playerid, car, 0);
}
}
}
return 1;
}
return 1;
}