Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Filterscripts [Filterscript] Menu Para Vips

 
  • 0 Vote(s) - 0 Average
Filterscript Menu Para Vips
Nikolay_Staggs
Offline

Burgershot Member
Posts: 13
Threads: 7
Joined: Dec 2020
Reputation: 0
Location: Sinaloa
#1
2021-02-06, 12:33 AM (This post was last modified: 2021-02-06, 05:14 PM by Nikolay_Staggs.)
Es un simple [FS].

Solo necesitas los includes dof2 zcmd.




/*
    Menu Vip

*/



#include <a_samp>

#include <dof2>

#include <zcmd>



new PlayerText:MENU_VIP[MAX_PLAYERS][14];

new Selecionar_Skin[MAX_PLAYERS];



public OnFilterScriptInit()

{

return 1;

}



public OnFilterScriptExit()

{

    DOF2_Exit();

return 1;

}



public OnPlayerConnect(playerid)

{

MENU_VIP[playerid][0] = CreatePlayerTextDraw(playerid, 325.000000, 153.000000, "_");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][0], 0.600000, 16.500017);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][0], 303.000000, 359.500000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][0], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][0], 2);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][0], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][0], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][0], 16777215);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][0], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][0], 0);



MENU_VIP[playerid][1] = CreatePlayerTextDraw(playerid, 325.000000, 155.000000, "_");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][1], 0.600000, 16.000024);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][1], 303.000000, 353.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][1], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][1], 2);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][1], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][1], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][1], 1296911871);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][1], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][1], 0);



MENU_VIP[playerid][2] = CreatePlayerTextDraw(playerid, 389.000000, 154.000000, "Preview_Model");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][2], 5);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][2], 0.600000, 2.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][2], 112.500000, 94.500000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][2], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][2], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][2], 1433087999);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][2], 255);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][2], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][2], 0);

PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], 304);

PlayerTextDrawSetPreviewRot(playerid, MENU_VIP[playerid][2], -17.000000, 0.000000, -25.000000, 0.940000);

PlayerTextDrawSetPreviewVehCol(playerid, MENU_VIP[playerid][2], 1, 1);



MENU_VIP[playerid][3] = CreatePlayerTextDraw(playerid, 392.000000, 252.000000, "<");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][3], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][3], 0.529166, 1.600000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][3], 404.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][3], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][3], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][3], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][3], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][3], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][3], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][3], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][3], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][3], 1);



MENU_VIP[playerid][4] = CreatePlayerTextDraw(playerid, 487.000000, 252.000000, ">");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][4], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][4], 0.529166, 1.600000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][4], 498.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][4], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][4], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][4], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][4], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][4], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][4], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][4], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][4], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][4], 1);



MENU_VIP[playerid][5] = CreatePlayerTextDraw(playerid, 156.000000, 162.000000, "armas");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][5], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][5], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][5], 234.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][5], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][5], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][5], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][5], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][5], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][5], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][5], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][5], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][5], 1);



MENU_VIP[playerid][6] = CreatePlayerTextDraw(playerid, 156.000000, 184.000000, "jetpack");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][6], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][6], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][6], 234.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][6], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][6], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][6], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][6], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][6], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][6], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][6], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][6], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][6], 1);



MENU_VIP[playerid][7] = CreatePlayerTextDraw(playerid, 156.000000, 208.000000, "guardar_pos");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][7], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][7], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][7], 268.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][7], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][7], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][7], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][7], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][7], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][7], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][7], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][7], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][7], 1);



MENU_VIP[playerid][8] = CreatePlayerTextDraw(playerid, 156.000000, 232.000000, "ir_pos");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][8], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][8], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][8], 234.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][8], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][8], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][8], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][8], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][8], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][8], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][8], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][8], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][8], 1);



MENU_VIP[playerid][9] = CreatePlayerTextDraw(playerid, 156.000000, 255.000000, "vida_chaleco");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][9], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][9], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][9], 273.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][9], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][9], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][9], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][9], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][9], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][9], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][9], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][9], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][9], 1);



MENU_VIP[playerid][10] = CreatePlayerTextDraw(playerid, 156.000000, 278.000000, "comandos_vip");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][10], 2);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][10], 0.400000, 1.000000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][10], 275.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][10], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][10], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][10], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][10], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][10], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][10], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][10], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][10], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][10], 1);



MENU_VIP[playerid][11] = CreatePlayerTextDraw(playerid, 278.000000, 155.000000, "menu");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][11], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][11], 0.416666, 1.200000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][11], 306.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][11], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][11], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][11], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][11], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][11], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][11], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][11], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][11], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][11], 0);



MENU_VIP[playerid][12] = CreatePlayerTextDraw(playerid, 319.000000, 155.000000, "vip");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][12], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][12], 0.395833, 1.200000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][12], 306.500000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][12], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][12], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][12], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][12], -65281);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][12], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][12], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][12], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][12], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][12], 0);



MENU_VIP[playerid][13] = CreatePlayerTextDraw(playerid, 451.000000, 290.000000, "cerrar");

PlayerTextDrawFont(playerid, MENU_VIP[playerid][13], 3);

PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][13], 0.416666, 1.200000);

PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][13], 498.000000, 17.000000);

PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][13], 0);

PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][13], 0);

PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][13], 1);

PlayerTextDrawColor(playerid, MENU_VIP[playerid][13], -1);

PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][13], 255);

PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][13], 0);

PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][13], 1);

PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][13], 1);

PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][13], 1);



return 1;

}



public OnPlayerDisconnect(playerid, reason)

{

PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);

return 1;

}



CMD:menu(playerid)

{

    PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);

    SetPlayerSkin(playerid, Selecionar_Skin[playerid]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][0]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][1]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][3]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][4]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][5]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][6]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][7]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][8]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][9]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][10]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][11]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][12]);

    PlayerTextDrawShow(playerid, MENU_VIP[playerid][13]);

    SelectTextDraw(playerid, 0xFF6C00FF);

    return 1;

}



public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)

{

    if(playertextid == MENU_VIP[playerid][4])

    {

      PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);

  if(Selecionar_Skin[playerid] == 310) Selecionar_Skin[playerid] = 0;

  {

      Selecionar_Skin[playerid] ++;

      PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);

      PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);

      SetPlayerSkin(playerid, Selecionar_Skin[playerid]);

  }

    }

    else if(playertextid == MENU_VIP[playerid][3])

    {

      PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);

  if(Selecionar_Skin[playerid] == 1) Selecionar_Skin[playerid] = 311;

  {

      Selecionar_Skin[playerid] --;

      PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);

      PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);

      SetPlayerSkin(playerid, Selecionar_Skin[playerid]);

  }

    }

    else if(playertextid == MENU_VIP[playerid][5])

    {

        GivePlayerWeapon(playerid, 26, 5000);

        GivePlayerWeapon(playerid, 24, 5000);

        GivePlayerWeapon(playerid, 30, 5000);

        GivePlayerWeapon(playerid, 34, 5000);

        SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}se te dio armas..");

    }

    else if(playertextid == MENU_VIP[playerid][6])

    {

        CancelSelectTextDraw(playerid);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);

    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);

    SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}has creado un jetpack..");

    }

    else if(playertextid == MENU_VIP[playerid][7])

    {

        new Float:vx, Float:vy, Float:vz, vpos[MAX_PLAYER_NAME], vstr[60];

        GetPlayerPos(playerid, vx, vy, vz);

        GetPlayerName(playerid, vpos, 24);



        format(vstr, sizeof(vstr), "POS_GUARDADA/Pos/%s.ini", vpos);



        if(!DOF2_FileExists(vstr))

        DOF2_CreateFile(vstr);

        DOF2_SetFloat(vstr, "X", vx);

        DOF2_SetFloat(vstr, "Y", vy);

        DOF2_SetFloat(vstr, "Z", vz);

        DOF2_SaveFile();

        SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}la posición actual se ha guardado..");

    }

    else if(playertextid == MENU_VIP[playerid][8])

    {

        new vpos[MAX_PLAYER_NAME], vstr[60];

        GetPlayerName(playerid, vpos, 24);

        format(vstr, sizeof(vstr), "POS_GUARDADA/Pos/%s.ini", vpos);

        if(!DOF2_FileExists(vstr))

        {

            SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}primero debes guardar una posición..");

        }

        else

        {

            new Float:vxi = DOF2_GetFloat(vstr, "X");

            new Float:vyi = DOF2_GetFloat(vstr, "Y");

            new Float:vzi = DOF2_GetFloat(vstr, "Z");



            SetPlayerPos(playerid, vxi, vyi, vzi);

            SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}has sido teletransportado..");

        }

    }

    else if(playertextid == MENU_VIP[playerid][9])

    {

        SetPlayerHealth(playerid, 100);

        SetPlayerArmour(playerid, 100);

    }

    else if(playertextid == MENU_VIP[playerid][13])

    {

        CancelSelectTextDraw(playerid);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);

    PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);

    }

    return 0;
}
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode