[AJUDA] Sistema Auto Tunar Bugado
#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


Messages In This Thread
[AJUDA] Sistema Auto Tunar Bugado - by [BC]Pegador[KoF] - 07.12.2011, 16:06
Re: [AJUDA] Sistema Auto Tunar Bugado - by array13 - 07.12.2011, 16:08
Re: [AJUDA] Sistema Auto Tunar Bugado - by [BC]Pegador[KoF] - 07.12.2011, 16:09
Re: [AJUDA] Sistema Auto Tunar Bugado - by DreeH - 07.12.2011, 16:30
Re: [AJUDA] Sistema Auto Tunar Bugado - by [BC]Pegador[KoF] - 07.12.2011, 17:06
Respuesta: [AJUDA] Sistema Auto Tunar Bugado - by gabrieldefreitas11 - 07.12.2011, 17:23
Respuesta: [AJUDA] Sistema Auto Tunar Bugado - by gabrieldefreitas11 - 07.12.2011, 17:32
Re: [AJUDA] Sistema Auto Tunar Bugado - by [BC]Pegador[KoF] - 07.12.2011, 17:41
Re: [AJUDA] Sistema Auto Tunar Bugado - by Kuddy - 07.12.2011, 17:47
Re: [AJUDA] Sistema Auto Tunar Bugado - by [BC]Pegador[KoF] - 07.12.2011, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)