Jump to content

Question

Posted

Salut ! Acum cateva minute am adaugat la gamemode-ul meu comanda /neon si... nu se vad neoanele si ziua (pe unele servere se vad si ziua)

Cum as putea face sa se vada si ziua?

Comanda:

[pawn]CMD:neon(playerid, params[])

{

if(IsPlayerInAnyVehicle(playerid))

{

if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)

{

SendClientMessage(playerid, COLOR_RED, "Tu Nu Esti La Volan !");

return 1;

}

ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "{FFFFFF}Alegeti Culoarea Neonului","{FFFFFF}Albastru\nVerde\nGalben\nRoz\nSterge Neoanele","Monteaza Neonul","Inchide");

    }

    else

    {

  SendClientMessage(playerid, COLOR_RED, "Tu Nu Esti In Masina !");

    }

    return 1;

}[/pawn]

OnDialogResponse:

[pawn]if(dialogid == DIALOG_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.8, 0.0, -0.70, 0.0, 0.0, 0.0);

                        AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);

                        SendClientMessage(playerid, COLOR_WHITE, "Neon Montat !");

}

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.8, 0.0, -0.70, 0.0, 0.0, 0.0);

              AttachObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);

              SendClientMessage(playerid, COLOR_WHITE, "Neon Montat !");

}

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.8, 0.0, -0.70, 0.0, 0.0, 0.0);

                        AttachObjectToVehicle(GetPVarInt(playerid, "yellow1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);

    SendClientMessage(playerid, COLOR_WHITE, "Neon Montat !");

}

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.8, 0.0, -0.70, 0.0, 0.0, 0.0);

              AttachObjectToVehicle(GetPVarInt(playerid, "white1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);

                            SendClientMessage(playerid, COLOR_WHITE, "Neon Montat !");

}

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.8, 0.0, -0.70, 0.0, 0.0, 0.0);

                        AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);

    SendClientMessage(playerid, COLOR_WHITE, "Neon Montat !");

}

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

                    SendClientMessage(playerid, COLOR_WHITE, "Neoanele Au Fost Demontate !");

                    }

        }

}[/pawn]

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • 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.