SA-MP Forums Archive
[AJUDA]FilterScript Danificado - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]FilterScript Danificado (/showthread.php?tid=300961)



[AJUDA]FilterScript de Carro Tunados e de Neon Ajuda ai Pow - [BC]Pegador[KoF] - 02.12.2011

Tipo quando eu Crio Veiculo o Veiculo aparece na minha frente era para aparece com eu dentro do veiculo tipo aparece o veiculo quando eu crio na minha frente eu entro quando saio ele n some mais tipo eu quero que voces mudem pra mim pra quando criar o veiculo ja nascer dentro do veiculo e quando sair do veiculo ele somir me ajuda porfavo e tbm quero q o /tunados n pega quando tiver dentro de 1 veiculo tipo o player ta dentro de 1 veiculo ai digita /tunados aparece assim voce ja esta em 1 veiculo e isso tbm de quando sair do veiculo q criei no /tunados ele suma se destrua n pra ele nunca voltar ele ser totalmente destruido n aparece onde criei pq esse fs ta com 1 poblema ele aparece onde o player cria dps q ele explode toma ai veja o filterscript abaixo


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)
    {
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;

e Outra coisa meu Sistema de Neon ta com 1 poblema eu coloco neon ai vai na hora q explode ai o carro volta pro lugar mais inves do neon sumir ele continua tipo eu queria q quando o carro se destruisse o neon tbm se destruisse olha ai a baixo o meu fs neon e me ajude porfavo

PHP код:

//-_-_-_-_-_-_-_-_-_-_-_-_Neon System By [EDT]Quattro-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
//-_-_-_-_-_-_-_-_-_-_-_-_-_-Do Not Remove Credits_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
//-_-_-_-_-_-_-_-_-_-_-_-_-Commands: /neonshop /neon-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
//-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_Enjoy Using It!-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
//-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
"Neon Editador por Pegador");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Neon Editador por Pegador");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
        
CreateObject(8954, -1984.5048828125426.6176147460928.94322395324700184);
        
CreateObject(11326, -1994.1408691406437.9718933105528.679206848145000.25);
        
CreateObject(7191, -1956.515625448.0923461914128.5870628356930095.25);
        
CreateObject(1173, -1980.5299072266435.4713439941430.378553390503000);
        
CreateObject(1172, -1980.4494628906435.7150573730529.489776611328000);
        
CreateObject(1171, -1981.2755126953435.6434631347729.8861446380620178354.75);
        
CreateObject(1169, -1981.0889892578435.5618286132829.487819671631000);
        
CreateObject(1168, -1975.2124023438435.7759399414130.41231727600100178);
        
CreateObject(1167, -1975.1953125435.834259033229.41602134704600178);
        
CreateObject(1163, -1984.1585693359439.3462219238330.5865039825442740269.75);
        
CreateObject(1162, -1984.1672363281441.5284423828130.722972869873270179.4066162109487.406616210938);
        
CreateObject(1139, -1984.2535400391443.7266845703130.460748672485280.19604492188191.3703613281398.445404052734);
        
CreateObject(1112, -1973.9462890625437.3812561035229.6469764709473.9391174316406349.976074218750.6956787109375);
        
CreateObject(1098, -1974.1801757813440.4666748046929.947492599487006);
        
CreateObject(1098, -1974.1300048828440.4291381835928.843486785889004);
        
CreateObject(1097, -1974.123046875438.5634155273429.94181632995600180.5);
        
CreateObject(1097, -1974.0185546875438.5621643066428.837507247925002);
        
CreateObject(1096, -1974.1331787109442.3284301757829.93508148193400181.25);
        
CreateObject(1096, -1974.1580810547442.2693176269528.77064704895000);
        
CreateObject(1089, -1977.2879638672447.4454040527330.869338989258000);
        
CreateObject(1085, -1974.0982666016444.2994384765629.98408317565900179.25);
        
CreateObject(1085, -1974.0404052734444.2481079101628.742120742798000);
        
CreateObject(1080, -1973.9967041016436.7881164550828.870197296143000.75);
        
CreateObject(1080, -1974.0190429688436.8727416992230.09167671203600181);
        
CreateObject(1065, -1975.4147949219447.4139709472730.93871307373000);
        
CreateObject(1047, -1984.2227783203440.3783874511729.25027656555200181.5);
        
CreateObject(1039, -1984.2292480469443.4515075683629.33080673217800184);
        
CreateObject(1036, -1984.1687011719437.3969421386729.33990859985400178);
        
CreateObject(1010, -1984.2023925781437.3027648925830.2724914550780900);
        
CreateObject(1009, -1984.2290039063437.8169860839830.226253509521090.5000610351560);
        
CreateObject(1008, -1984.1997070313436.6415405273430.228116989136088.50);
        
#pragma tabsize 0
        #define COLOR_YELLOW 0xFFFF00AA
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp(cmdtext"/neon"true)==0)
    {
 if(!
IsPlayerInAnyVehicle(playerid)){
    
SendClientMessage(playerid,-1,"[INFO] Voce nao esta em um carro.");
    return 
1;
}
    
ShowPlayerDialog(playerid8899DIALOG_STYLE_LIST"Pick Neon Color""Blue\nRed\nGreen\nWhite\nPink\nYellow\nPolice Strobe\nInterior Lights\nBack Neon\nFront neon\nUndercover Roof Light\nRemove All Neon""Select""Cancel");
    
PlayerPlaySound(playerid11330.00.010.0);
return 
1;}
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
 if(
dialogid == 8899)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
            
//blue
            
SetPVarInt(playerid"Status"1);
            
SetPVarInt(playerid"neon"CreateObject(18648,0,0,0,0,0,0));
            
SetPVarInt(playerid"neon1"CreateObject(18648,0,0,0,0,0,0));
            
AttachObjectToVehicle(GetPVarInt(playerid"neon"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
            
AttachObjectToVehicle(GetPVarInt(playerid"neon1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                }
            if(
listitem == 1)
            {
             
//red
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon2"CreateObject(18647,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon3"CreateObject(18647,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon2"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon3"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
}
            if(
listitem == 2)
            {
            
//green
                  
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon4"CreateObject(18649,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon5"CreateObject(18649,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon4"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon5"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
                }
            if(
listitem == 3)
            {
            
//white
                  
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon6"CreateObject(18652,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon7"CreateObject(18652,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon6"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon7"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
}
            if(
listitem == 4)
            {
            
//pink
                  
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon8"CreateObject(18651,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon9"CreateObject(18651,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon8"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon9"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
}
            if(
listitem == 5)
            {
            
//yellow
                   
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon10"CreateObject(18650,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon11"CreateObject(18650,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon10"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon11"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
}
            if(
listitem == 6)
            {
            
//police
                   
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon12"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon13"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon12"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon13"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
                }
                   if(
listitem == 7)
                {
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"interior"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"interior1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"interior"), GetPlayerVehicleID(playerid), 0, -0.002.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"interior1"), GetPlayerVehicleID(playerid), 0, -0.002.02.03.0);
                
SendClientMessage(playerid0xFFFFFFAA"Interior lights installed");
                }
              if(
listitem == 8)
            {
            
//back
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"back"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"back1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -12.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -12.02.03.0);
                
SendClientMessage(playerid0xFFFFFFAA"Back neon installed");
                }
                if(
listitem == 9)
                {
                
//front
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"front"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"front1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"front"), GetPlayerVehicleID(playerid), -0.01.5, -0.62.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"front1"), GetPlayerVehicleID(playerid), -0.01.5, -0.62.02.03.0);
                
SendClientMessage(playerid0xFFFFFFAA"Front neon installed");
                }
                if(
listitem == 10)
                {
                
//undercover
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"undercover"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"undercover1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"undercover"), GetPlayerVehicleID(playerid), -0.5, -0.20.82.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.20.82.02.03.0);
                
SendClientMessage(playerid0xFFFFFFAA"Undercover lights installed");
                }
            if(
listitem == 11)
            {
            
//remove neon
            
DestroyObject(GetPVarInt(playerid"neon"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon2"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon3"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon4"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon5"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon6"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon7"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon8"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon9"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon10"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon11"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon12"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon13"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"interior"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"interior1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"back"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"back1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"front"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"front1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"undercover"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"undercover1"));
            
DeletePVar(playerid"Status");
               }
         }
         }
             return 
0;}
             
        public 
OnPlayerConnect()
        {
        new 
playerid;
        
SendClientMessage(playeridCOLOR_YELLOW,"This server is using neon system by [EDT]Quattro. Use /neonshop!");
        return 
1;
        }
        
//do not remove credits please... 



Re: [AJUDA]FilterScript Danificado - Cristhian - 02.12.2011

nгo entendi nada .-.


Re: [AJUDA]FilterScript de Carro Tunados e de Neon Ajuda ai Pow - [NWD]Jim._.Carrey - 02.12.2011

Quote:
Originally Posted by [BC]Pegador[KoF]
Посмотреть сообщение
eu entro quando saio ele n some mais tipo eu quero que voces mudem pra mim
For money?

Nгo tem que querer manolo isso й fуrum para ajuda e nгo falar eu quero... 'Quer cafй com bolachas?'


Re: [AJUDA]FilterScript Danificado - dPlaYer_ - 02.12.2011

Paga 10 Conto a um Scripter Cachaceiro e seus problemas se acabam '-'


Re: [AJUDA]FilterScript Danificado - [BC]Pegador[KoF] - 03.12.2011

puts ngm vai me ajudar naum ?


Re: [AJUDA]FilterScript Danificado - Cristhian - 03.12.2011

dб pra explicar melhor o que vc "quer" ?

pawn Код:
if(linhas > 3) return Nгo leio .-.