[PEDIDO] Como faзo um sistema de neon Para vips/socio
#1

entao galera sou novatao em pwn,mais sei editar algumas coisas
eu queria saber como eu faзo um sistema de neon para vip/socio, mais para poder instalar o neon ele devera estar em um local especifico, e quando ele digitar /neon abre uma janela em dialog com as cores do neon..

espero alguem me ajudar
Reply
#2

Creditos: https://sampforum.blast.hk/showthread.php?tid=246816

PHP код:
#define FILTERSCRIPT
#define COLOR_WHITE 0xFFFFFFAA
#include <a_samp>
#define NEON 1337 // Dialogid
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Neon System By AlexzzPro");
    print(
"--------------------------------------\n");
    return 
1;
}
#endif
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/neon"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInAnyVehicle(playerid))
         {
            if(!
IsPlayerInRangeOfPoint(playerid6.0XYZ)) return SendClientMessage(playerid, -1"Vocк nгo estб no local X, Y, Z !");
            if(
VARIAVEL DE VIP/SOCIO[playerid] < 1) return SendClientMessage(playerid, -1"Vocк nгo й VIP ou socido !");
            if(
GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playeridCOLOR_WHITE" Vocк nгo й o motorista.");
            
ShowPlayerDialog(playeridNEONDIALOG_STYLE_LIST"Escolha a cor:","Azul\nVerde\nAmarelo\nBranco\nRosa\nDesligar Neon","Selecionar","Fechar");
        }
        else
        {
            
SendClientMessage(playeridCOLOR_WHITE" Vocк nгo estб em um veiculo.");
        }
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == NEON)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
SetPVarInt(playerid"neon"1);
                
SetPVarInt(playerid"blue"CreateObject(18648,0,0,0,0,0,0));
                
SetPVarInt(playerid"blue1"CreateObject(18648,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"blue"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"blue1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
GameTextForPlayer(playerid"~w~Neon ~b~Azul ~w~foi adicionado ao seu veiculo.",3500,5);
            }
            if(
listitem == 1)
            {
                   
SetPVarInt(playerid"neon"1);
                   
SetPVarInt(playerid"green"CreateObject(18649,0,0,0,0,0,0));
                   
SetPVarInt(playerid"green1"CreateObject(18649,0,0,0,0,0,0));
                   
AttachObjectToVehicle(GetPVarInt(playerid"green"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                  
AttachObjectToVehicle(GetPVarInt(playerid"green1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                  
GameTextForPlayer(playerid"~~w~Neon ~g~Verde ~w~foi adicionado ao seu veiculo.",3500,5);
            }
            if(
listitem == 2)
            {
                
SetPVarInt(playerid"neon"1);
                   
SetPVarInt(playerid"yellow"CreateObject(18650,0,0,0,0,0,0));
                  
SetPVarInt(playerid"yellow1"CreateObject(18650,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"yellow"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                 
AttachObjectToVehicle(GetPVarInt(playerid"yellow1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
GameTextForPlayer(playerid"~w~Neon ~y~Amarelo ~w~foi adicionado ao seu veiculo.",3500,5);
            }
            if(
listitem == 3)
            {
                   
SetPVarInt(playerid"neon"1);
                   
SetPVarInt(playerid"white"CreateObject(18652,0,0,0,0,0,0));
                   
SetPVarInt(playerid"white1"CreateObject(18652,0,0,0,0,0,0));
                   
AttachObjectToVehicle(GetPVarInt(playerid"white"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                  
AttachObjectToVehicle(GetPVarInt(playerid"white1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
GameTextForPlayer(playerid"~w~Neon Branco ~w~foi adicionado ao seu veiculo.",3500,5);
            }
            if(
listitem == 4)
            {
                   
SetPVarInt(playerid"neon"1);
                 
SetPVarInt(playerid"pink"CreateObject(18651,0,0,0,0,0,0));
                
SetPVarInt(playerid"pink1"CreateObject(18651,0,0,0,0,0,0));
                  
AttachObjectToVehicle(GetPVarInt(playerid"pink"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"pink1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
GameTextForPlayer(playerid"~w~Neon ~p~Roxo ~w~foi adicionado ao seu veiculo.",3500,5);
            }
            if(
listitem == 5)
            {
                   
DestroyObject(GetPVarInt(playerid"blue"));
                   
DeletePVar(playerid"neon");
                   
DestroyObject(GetPVarInt(playerid"blue1"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"green"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"green1"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"yellow"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"yellow1"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"white"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"white1"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"pink"));
                
DeletePVar(playerid"neon");
                
DestroyObject(GetPVarInt(playerid"pink1"));
                
DeletePVar(playerid"neon");
                
GameTextForPlayer(playerid"~g~Neon foi deletado do seu veiculo.",3500,5);
            }
        }
     }
    return 
1;

Creditos: https://sampforum.blast.hk/showthread.php?tid=246816

OBS: Na linha 23 deste cуdigo, substitua isto:

PHP код:
if(VARIAVEL DE VIP/SOCIO[playerid] < 1
Pela variavel que define VIP ou SOCIO ou, obviamente, irб dar erro !
Reply
#3

C:\Users\vinicius\BPS\BPS Original\filterscript\neon.pwn(22) : error 017: undefined symbol "X"
C:\Users\vinicius\BPS\BPS Original\filterscript\neon.pwn(23) : error 017: undefined symbol "VARIAVEL"
C:\Users\vinicius\BPS\BPS Original\filterscript\neon.pwn(23) : error 017: undefined symbol "DE"
C:\Users\vinicius\BPS\BPS Original\filterscript\neon.pwn(23) : error 017: undefined symbol "VIP"
C:\Users\vinicius\BPS\BPS Original\filterscript\neon.pwn(23) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#4

Й pra vocк trocar o VARIAVEL_DE_VIP pra a variavel de VIP do seu server.
EXEMPLO
pSocio.
Reply
#5

if[pVIP][pSocio][playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й VIP ou socido !"); Ainda Continua Dando Error
Reply
#6

Quote:

if[pVIP][pSocio][playerid] < 1);

Tenta isso...
Reply
#7

Vey ... Eu disse que era necessбrio trocar pela variavel de vip.

Caso nao tenha um sistema VIP, crie-o ou baixe um aqui mesmo no forum.

Quanto a X, Y e Z, vocк deve trocб-las pelas coordenadas que o jogador deve estar para colocar neon !
Reply
#8

Me Explica oq eh Variavel man comecei a meche em pwn agr
Reply
#9

http://forum.sa-mp.com/showthread.ph...rial+variaveis
http://forum.sa-mp.com/showthread.ph...rial+variaveis
http://forum.sa-mp.com/showthread.ph...rial+variaveis

Antes de comecar a programar voce deve procurar tutoriais e ter pelo menos uma base ... Agora vir ao forum sem saber nada й F$%# !
Reply
#10

Vocк Jб tem o Sistema de Sуcios? Usa Qual Mode?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)