! - . . , , . , , , (, ) . !





VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

: !

1 10 13

  1. #1

      Lancer

    :
    :11.12.2010
    :Salavat city
    :340
    :53 [+/-] 

    !

    . , .

    , :
    enum pInfo

    PHP :
    pCarKey 

    OnPlayerRegister
    PHP :
    format(var, 32"CarKey=%d\n",PlayerInfo[playerid][pCarKey]);fwrite(hFile, var); 
    OnPlayerLogin

    PHP :
    if( strcmpkey "CarKey" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarKey] = strvalval ); } 
    OnPlayerConnect

    PHP :
    PlayerInfo[playerid][pCarKey] = 0
    :

    PHP :
    enum cInfo
    {
    cOwned,
    cModel
    };
    new 
    CarInfo[1][cInfo]; 
    .



    PHP :
    LoadCars()
    {
    new 
    arrCoords[2][64];
    new 
    strFromFile2[256];
    new 
    Filefile fopen("cars.cfg"io_read);
    if (
    file)
    {
    new 
    idx;
    while (
    idx sizeof(CarInfo))
    {
    fread(filestrFromFile2);
    split(strFromFile2arrCoords'|');
    CarInfo[idx][cOwned] = strval(arrCoords[0]);
    CarInfo[idx][cModel] = strval(arrCoords[1]);
    idx++;
    }
    fclose(file);
    }
    return 
    1;

    cars.cfg scriptfiles


    PHP :
    0|411 


    :

    PHP :
    new Float:BuyCarsSpawn[1][4]={
    {
    1111.3768,-1796.1268,16.5938,123.1231}
    }; 
    1111.3768,-1796.1268,16.5938,123.1231 - x,y,z,f (f - )

    :

    OnGameModeInit

    PHP :
    LoadCars(); 


    PHP :
    for(new 0sizeof(CarInfo); c++)
    {
    AddStaticVehicleEx(CarInfo[c][cModel], BuyCarsSpawn[c][0], BuyCarsSpawn[c][1], BuyCarsSpawn[c][2], BuyCarsSpawn[c][3], -1, -1600000);

    .

    .

    OnPlayerStateChange(playerid, newstate, oldstate), ,


    PHP :
    if(newstate == PLAYER_STATE_DRIVER
    PHP :
    if(newcar sizeof(CarInfo)&&newcar!=0)
       {
        if(
    newcar!=PlayerInfo[playerid][pCarKey]&&CarInfo[newcar-1][cOwned]==1)
        {
         
    SendClientMessage(playeridCOLOR_GREY,"Ýòî íå âàøà ìàøèíà");
            
    RemovePlayerFromVehicle(playerid);
        }
        else if(
    CarInfo[newcar-1][cOwned]==0)
        {
         
    SendClientMessage(playeridCOLOR_GREY,"Âû ìîæåòå êóïèòü ýòó ìàøèíó. Ââåäèòå /buycar");
            
    TogglePlayerControllable(playerid0);
        }
        return 
    1;
       } 


    PHP :
    if(strcmp(cmd"/buycar"true) == 0)
      {
       new 
    newcar GetPlayerVehicleID(playerid);
       if(
    newcar!=0&&newcar sizeof(CarInfo)&&CarInfo[newcar-1][cOwned]==0)
       {
        
    CarInfo[newcar-1][cOwned]=1;
        
    PlayerInfo[playerid][pCarKey]=newcar;
        
    SendClientMessage(playeridCOLOR_WHITE"Âû êóïèëè ýòó ìàøèíó");
        
    GivePlayerMoney(playerid, -20000);
        
    TogglePlayerControllable(playerid1);
       }
      }
    if(
    strcmp(cmd"/sellcar"true) == 0)
      {
       
    CarInfo[PlayerInfo[playerid][pCarKey]-1][cOwned]=0;
       
    PlayerInfo[playerid][pCarKey]=0;
       
    SendClientMessage(playeridCOLOR_WHITE"Âû ïðîäàëè ýòó ìàøèíó");
       
    GivePlayerMoney(playerid20000);
       
    RemovePlayerFromVehicle(playerid);
       
    OnPropUpdate();
      } 
    OnPropUpdate,

    PHP :
    idx 0;
    while (
    idx sizeof(CarInfo))
    {
    new 
    coordsstring[256];
    format(coordsstringsizeof(coordsstring), "%i|%i\n",CarInfo[idx][cOwned],CarInfo[idx][cModel]);
    if(
    idx == 0file2 fopen("cars.cfg"io_write);
    else 
    file2 fopen("cars.cfg"io_append);
    fwrite(file2coordsstring);
    idx++;
    fclose(file2); 
    :bla-bla-bla.ucoz.ru
    P.S. xD
    Kaza40k; 18.12.2010 10:51. :
  2. 2 c Lancer :

    ike (15.10.2012), ~Extreme~ (15.08.2011)

  3. #2

      IncoGnitO

    :
    :11.11.2010
    :251
    :22 [+/-] 
    sun city Sun City LARP
  4. #3

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 
    574374635 krolater14
  5. #4

      PaTrOn

    :
    :04.02.2011
    :
    :208
    :24 [+/-] 
    ,
  6. #5

      SkippeR

    :
    :20.01.2011
    :69
    :0 [+/-] 
    , ?
    - .
  7. #6

      AHTOXA

    :
    :31.03.2011
    :17
    :-11 [+/-] 
  8. #7

      ~Extreme~

    :
    :27.07.2011
    :82
    :8 [+/-] 
    0_o OnPropUpdate?
  9. #8

      Roy

    :
    :24.08.2011
    :-
    :98
    :1 [+/-] 
  10. #9
    , fil66688
  11. #10

      Murphy

    :
    :08.08.2012
    :749
    :68 [+/-] 
    ?
    SKYPE: vitalik_naboka

, : 0

.

111, 1111, 123, 252, 256, , , amp, , c++, city, , , edm, , , , , larp, music forum, , , news, , php, playerid, sun, sun city

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g