Jump to content

meniu cu skinuri!


zaster

Recommended Posts

Salut am hotarat sa fac un meniu cu skinuri apesi pe skin  si ati seteaza skinul eu am bagat doar 6 daca mai vreti voi va bagati

[pawn]new Menu:menu;

[/pawn]

[pawn]menu = CreateMenu("Skinuri", 1, 50.0, 180.0, 200.0, 200.0);

AddMenuItem(menu, 0, "skin 293");

AddMenuItem(menu, 0, "skin 19");

AddMenuItem(menu, 0, "skin 39");

AddMenuItem(menu, 0, "skin 29");

AddMenuItem(menu, 0, "skin 100");

AddMenuItem(menu, 0, "skin 101");

[/pawn]

[pawn]public OnPlayerSelectedMenuRow(playerid, row)

{

    new Menu:current;

    current = GetPlayerMenu(playerid);

    if(current == menu)

    {

        switch(row)

        {

            case 0:{

                //Row 1 codeSetPlayerSkin(skinid,293);

            }

            case 1:{

//Row 2 codeSetPlayerSkin(skinid,19);

            }

            case 2:{

//Row 3 codeSetPlayerSkin(skinid,39);

            }

            case 3:{

//Row 4 codeSetPlayerSkin(skinid,29);

            }

            case 4:{

//Row 5 codeSetPlayerSkin(skinid,100);

            }

            case 5:{

//Row 6 codeSetPlayerSkin(skinid,101);

            }

        }

    }

    return 1;

}

//You will have to sort the indentation out yourself[/pawn]

[pawn]public OnPlayerSelectedMenuRow(playerid, row)

{

    new Menu:current;

    current = GetPlayerMenu(playerid);

    if(current == menu)

    {

        switch(row)

        {

            case 0:{

                //Row 1 codeSetPlayerSkin(skinid,293);

            }

            case 1:{

//Row 2 codeSetPlayerSkin(skinid,19);

            }

            case 2:{

//Row 3 codeSetPlayerSkin(skinid,39);

            }

            case 3:{

//Row 4 codeSetPlayerSkin(skinid,29);

            }

            case 4:{

//Row 5 codeSetPlayerSkin(skinid,100);

            }

            case 5:{

//Row 6 codeSetPlayerSkin(skinid,101);

            }

        }

    }

    return 1;

}

//You will have to sort the indentation out yourself[/pawn]

sper ca vam ajutat :)

560x95_FFFFFF_FF9900_000000_000000.png
Link to comment
Share on other sites

Astia nu isi bat joc de tine....

Dar ei zic adevaru, nu mai posta chesti care le faci in 2-3 minute ma...Ai postat /new ala l-ai facut intr-un minut...Si alte chesti, posteaza si tu ceva mai mare si interesant :) nu zic cu parere de rau!

Bravo 3/5


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Foarte simplu, decat sa pui chinui acele 6 skinuri mai bine faceai un dialog input, playerul scria skinul pe care il dorea si gata, asa mai convenabil e o comanda, ex /skin 18 fiindca asa pana deschide meniul.....alege skinul......in fine bun si asa decat deloc, 2/5 un simplu dialog(asa faceam si eu, dar GZS Stuntman m-a atentionat si ....)

Nota:

0,5/5

~~scaled.php?server=7&filename=logocareerps.jpg&res=medium~~

~~==~~Respect~~==~~

Link to comment
Share on other sites

Foarte simplu, decat sa pui chinui acele 6 skinuri mai bine faceai un dialog input, playerul scria skinul pe care il dorea si gata, asa mai convenabil e o comanda, ex /skin 18 fiindca asa pana deschide meniul.....alege skinul......in fine bun si asa decat deloc, 2/5 un simplu dialog(asa faceam si eu, dar GZS Stuntman m-a atentionat si ....)

Nota:

0,5/5

^^

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

{

    if( sscanf( params, "i", params[ 0 ] ) )

        return SendClientMessage( playerid, -1, "USAGE: /skin [ SkinID ]" );

    if( params[ 0 ] < 0 || params[ 0 ] > 299 || IsInvalidSkin( params[ 0 ] ) )

        return SendClientMessage( playerid, -1, "ERROR: This skin doesn't exist !" );

    SetPlayerSkin( playerid, params[ 0 ] );

    return 1;

}

//Undeva in script

IsInvalidSkin( skinid )

{

    #define MAX_BAD_SKINS 14

    new InSkin[ MAX_BAD_SKINS ] = { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208,  273, 289 };

    for( new i = 0; i < MAX_BAD_SKINS; i++ )

if( skinid == InSkin[ i ] )

return true;

    return 0;

}[/pawn]

Mult mai scurt + are toate skinurile.

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
Reply to this topic...

×   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.