Jump to content

ExTREME.

Membru
  • Posts

    118
  • Joined

  • Last visited

    Never

Posts posted by ExTREME.

  1. Salut am facut un sistem de salvare cu sql Setez un skin de ex /Skin 1 mil arata in database cai skin nr 1

    Dar cand intru iar pe sv nu mil mai da

    [pawn]new DBResult:Result, Query[128], strg[128];

      format( Query, sizeof( Query ), "SELECT `Skin` = '%d' FROM `Skin` WHERE `Name` = '%s'", Name(playerid));

          Result = db_query( Database,  Query );

         

          if ( db_num_rows( Result ))

          {

      new Field[ 30 ];

      db_get_field_assoc(Result, "Skin", Field, 30);

      P_DATA[playerid][skin] = strval( Field );

     

      }

          else

      {

          format(string,sizeof(string),"You have Skin ...");

        ShowPlayerDialog(playerid, DIALOGID_CLANCREATE, DIALOG_STYLE_MSGBOX, "Skin", string, "Next", "Cancel");

    }

    db_free_result( Result );[/pawn]

    e ceva gresit oare:O?

  2. Uite comanda merge 100%

    CMD:nrg( playerid, params[ ] )

    {

    if(IsPlayerInAnyVehicle(playerid)) return Info( playerid, "~r~~h~Already drive a car. ~b~~h~Out of the car and try again.");

    Info( playerid, "Personal ~b~~h~NRG-500~w~ succesfully created" );

    aCreateThing(playerid, 522, 191);

    PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);

    return 1;

    }

  3. Copiaza asta

    public OnPlayerRequestClass(playerid, classid)

    {

       

    new string[128];

    PlayerInfo[playerid][pModel] = Peds[classid][0];

    if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)

    {

    ClearChatbox(playerid, 10);

    format(string, sizeof(string), "Bun venit pe server pe versiunea %s", SCRIPT_VERSION);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    SendClientMessage(playerid, COLOR_YELLOW2, " ");

                                SetPlayerVirtualWorld(playerid, 0);

                                SetPlayerInterior(playerid, 0);

    //PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);

    PlayerInfo[playerid][pModel] = Peds[classid][0];

    SetPlayerTeamFromClass(playerid,classid);

                  SetPlayerPos(playerid, 2019.849121, 1343.078125, 10.812978);

                                SetPlayerFacingAngle(playerid, 270.089508);

                              SetPlayerCameraLookAt(playerid, 2019.849121, 1343.078125, 10.812978);

                              SetPlayerCameraPos(playerid, 2019.849121 + (25 * floatsin(-270.089508, degrees)), 1343.078125 + (25 * floatcos(-270.089508, degrees)), 10.812978);

    }

    else SpawnPlayer(playerid);

    return false;

    }

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