Jump to content
  • 0

putin ajutor:d


TheDanutzelu

Question

4 answers to this question

Recommended Posts

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

{

        new Colour, colour[ 24 ];

                return SendClientMessage( playerid, COLOR_RED, "Colours: 0 = Black | 1 = White | 2 = Red | 3 = Orange | 4 = Yellow | 5 = Green | 6 = Blue | 7 = Purple | 8 = Brown" );

switch (Colour) {

                case 0: { SetPlayerColor( playerid, 0x000000AA ); colour = "Black"; }

                case 1: { SetPlayerColor( playerid, 0xFFFFFFAA ); colour = "White"; }

                case 2: { SetPlayerColor( playerid, 0xE60000AA ); colour = "Red"; }

                case 3: { SetPlayerColor( playerid, 0xFF5500AA ); colour = "Orange"; }

                case 4: { SetPlayerColor( playerid, 0xFFFF00AA ); colour = "Yellow"; }

                case 5: { SetPlayerColor( playerid, 0x00FF00AA ); colour = "Green"; }

                case 6: { SetPlayerColor( playerid, 0x0000BBAA ); colour = "Blue"; }

                case 7: { SetPlayerColor( playerid, 0x800080AA ); colour = "Purple"; }

                case 8: { SetPlayerColor( playerid, 0xA52A2AAA ); colour = "Brown"; } }

    return 1;

}[/pawn]

SAU:

[pawn] if(strcmp(cmd, "/color", true) == 0)

{

        new Colour, colour[ 24 ];

                return SendClientMessage( playerid, COLOR_RED, "Colours: 0 = Black | 1 = White | 2 = Red | 3 = Orange | 4 = Yellow | 5 = Green | 6 = Blue | 7 = Purple | 8 = Brown" );

switch (Colour) {

                case 0: { SetPlayerColor( playerid, 0x000000AA ); colour = "Black"; }

                case 1: { SetPlayerColor( playerid, 0xFFFFFFAA ); colour = "White"; }

                case 2: { SetPlayerColor( playerid, 0xE60000AA ); colour = "Red"; }

                case 3: { SetPlayerColor( playerid, 0xFF5500AA ); colour = "Orange"; }

                case 4: { SetPlayerColor( playerid, 0xFFFF00AA ); colour = "Yellow"; }

                case 5: { SetPlayerColor( playerid, 0x00FF00AA ); colour = "Green"; }

                case 6: { SetPlayerColor( playerid, 0x0000BBAA ); colour = "Blue"; }

                case 7: { SetPlayerColor( playerid, 0x800080AA ); colour = "Purple"; }

                case 8: { SetPlayerColor( playerid, 0xA52A2AAA ); colour = "Brown"; } }

    return 1;

}[/pawn]

Nu se cer scripturi dar na .. uite fara dialogreponse , folosesti doar /color 1/2/3/4/5...

NU este facuta de mine comanda!!!

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

Link to comment
Share on other sites

Tu vrei muran gura?

1.Nu ce scripturi.

2.Nu ai pus un titlu bun. (degeaba sa facut regula ca nici un GM/ADMIN nu ia masuri).

3.Foloseste Search...

4.Uite un tutorial: http://forum.sa-mp.ro/index.php?topic=3122.0

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

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.