Jump to content
  • 0

System Neon!


VAurel

Question

Salut, am si eu o problemuta.

Am inceput sa fac un sistem de neon de la 0, ok nicio problema, in gm nicio erroare la compilari.

Dar pe game, nu functioneaza comanda cand selectez un neon in changeneon, aveti codurile mai jos!

Comanda /changeneon

CMD:changeneon(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
    if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_RED,"Nu esti intr-un vehicul.");
    new veh = GetPlayerVehicleID(playerid);
    if(OwnedVeh(veh) == -1) return Error(playerid, "Nu esti intr-un vehiculul personal care iti apartine.");
    new cct = OwnedVeh(veh);
    if(CarInfo[cct][cOwned] != PlayerInfo[playerid][pSQLID]) return Error(playerid, "Nu este vehiculul tau.");
    if(CarInfo[cct][cVip] == false) return Error(playerid, "Vehiculul in care te afli nu este unul VIP.");
    if(CarInfo[cct][cNeon] == 0) return Error(playerid, "Vehiculul in care te aflii nu detine System Neon!");
    {
        ShowPlayerDialog(playerid, DIALOG_CHANGENEON, DIALOG_STYLE_LIST, "Change Neon", "Neon -{FF0000} Rosu{FFFFFF}\nNeon -{0088FF} Albastru{FFFFFF}\n Neon -{167400} Verde{FFFFFF}", "Select", "Cancel");
    }
    return 1;
}

Dialog_Changeneon :

case DIALOG_CHANGENEON: 
    {
        if(response)
        {
            new vid = GetPlayerVehicleID(playerid);
            if(listitem == 0)
            {
                DestroyObject(neon1[vid]);
                DestroyObject(neon2[vid]);
                neon1[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon1[vid], vid,0.7999, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                neon2[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon2[vid], vid,-0.7800, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                SCMf(playerid, COLOR_WHITE, "{CD7F00}>>{FFFFFF} Neon actualizat! - {FF0000}Rosu{FFFFFF}");
            }
            if(listitem == 1)
            {
                DestroyObject(neon1[vid]);
                DestroyObject(neon2[vid]);
                neon1[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon1[vid], vid,0.7999, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                neon2[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon2[vid], vid,-0.7800, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                SCMf(playerid, COLOR_WHITE, "{CD7F00}>>{FFFFFF} Neon actualizat! - {0088FF}Albastru{FFFFFF}");
            }
            if(listitem == 2)
            {
                DestroyObject(neon1[vid]);
                DestroyObject(neon2[vid]);
                neon1[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon1[vid], vid,0.7999, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                neon2[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon2[vid], vid,-0.7800, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                SCMf(playerid, COLOR_WHITE, "{CD7F00}>>{FFFFFF} Neon actualizat! - {167400}Verde{FFFFFF}");
            }
        }
    }

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

in mapeditor se vad dar pe joc nu se pot vedea daca tu nu ai efectele care arata lumina neonului, mapeditor doar transfereaza obiectul dar asta nu inseamna ca o sa-l vezi tu.

Eu zic sa te duci sa-ti iei efectele default ale jocului si sa vezi daca ai aceeasi problema.

Link to comment
Share on other sites

  • 0
Acum 14 minute, Serbaq a spus:

in mapeditor se vad dar pe joc nu se pot vedea daca tu nu ai efectele care arata lumina neonului, mapeditor doar transfereaza obiectul dar asta nu inseamna ca o sa-l vezi tu.

Eu zic sa te duci sa-ti iei efectele default ale jocului si sa vezi daca ai aceeasi problema.

Daca se poate... Poate eu cand am facut coordonatele si cum am atasat neoanele pe vehicul, poate sunt prea sus sau prea jos si deaia nu se vad...

Ai tu cumva prin pc coordonate bune? Daca nu ai, o sa caut pe net ca sigur gasesc un gm care are sistemu de neon si iau coord de acolo!

Link to comment
Share on other sites

  • 0
Chiar acum, Serbaq a spus:

Nu detin asa ceva inca deoarece n-am lucrat pana acum cu sistem de neon, eu acum lucrez la sistemul meu de afaceri  :)).Imi pare rau, daca le aveam ti le dadeam.

Nu e nicio problema, mersi oricum ca m-ai ajutat ❤️ O sa incerc sa caut in alte gamemode-uri sau caut vreun filterscript de neon!

PS : Nu e de la Effecte :) Le-am bagat pe cele default si degeaba.

Link to comment
Share on other sites

  • 0
Acum 16 ore, VAurel a spus:

Salut, am si eu o problemuta.

Am inceput sa fac un sistem de neon de la 0, ok nicio problema, in gm nicio erroare la compilari.

Dar pe game, nu functioneaza comanda cand selectez un neon in changeneon, aveti codurile mai jos!

Comanda /changeneon


CMD:changeneon(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
    if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_RED,"Nu esti intr-un vehicul.");
    new veh = GetPlayerVehicleID(playerid);
    if(OwnedVeh(veh) == -1) return Error(playerid, "Nu esti intr-un vehiculul personal care iti apartine.");
    new cct = OwnedVeh(veh);
    if(CarInfo[cct][cOwned] != PlayerInfo[playerid][pSQLID]) return Error(playerid, "Nu este vehiculul tau.");
    if(CarInfo[cct][cVip] == false) return Error(playerid, "Vehiculul in care te afli nu este unul VIP.");
    if(CarInfo[cct][cNeon] == 0) return Error(playerid, "Vehiculul in care te aflii nu detine System Neon!");
    {
        ShowPlayerDialog(playerid, DIALOG_CHANGENEON, DIALOG_STYLE_LIST, "Change Neon", "Neon -{FF0000} Rosu{FFFFFF}\nNeon -{0088FF} Albastru{FFFFFF}\n Neon -{167400} Verde{FFFFFF}", "Select", "Cancel");
    }
    return 1;
}

Dialog_Changeneon :


case DIALOG_CHANGENEON: 
    {
        if(response)
        {
            new vid = GetPlayerVehicleID(playerid);
            if(listitem == 0)
            {
                DestroyObject(neon1[vid]);
                DestroyObject(neon2[vid]);
                neon1[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon1[vid], vid,0.7999, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                neon2[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon2[vid], vid,-0.7800, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                SCMf(playerid, COLOR_WHITE, "{CD7F00}>>{FFFFFF} Neon actualizat! - {FF0000}Rosu{FFFFFF}");
            }
            if(listitem == 1)
            {
                DestroyObject(neon1[vid]);
                DestroyObject(neon2[vid]);
                neon1[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon1[vid], vid,0.7999, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                neon2[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon2[vid], vid,-0.7800, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                SCMf(playerid, COLOR_WHITE, "{CD7F00}>>{FFFFFF} Neon actualizat! - {0088FF}Albastru{FFFFFF}");
            }
            if(listitem == 2)
            {
                DestroyObject(neon1[vid]);
                DestroyObject(neon2[vid]);
                neon1[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon1[vid], vid,0.7999, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                neon2[vid] = CreateObject(18647,0,0,0,0,0,0);
                AttachObjectToVehicle(neon2[vid], vid,-0.7800, 0.0599, -0.3000, 0.0199, 359.9200, 357.8800);
                SCMf(playerid, COLOR_WHITE, "{CD7F00}>>{FFFFFF} Neon actualizat! - {167400}Verde{FFFFFF}");
            }
        }
    }

 

			AttachDynamicObjectToVehicle(neon1[0][vid], vid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
			AttachDynamicObjectToVehicle(neon2[1][vd], vid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);

salut este bine sa te folosesti si de functia AttachDynamicObjectToVehicle

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.