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





VK: vk.com/sergey68

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

: [dini]

1 10 39

  1. #1

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 

    [dini]

    [dini] !
    pawno - . , . . , ,

    dini, () "pawno\include\"

    , .

    , :
    PHP :
    #include <a_samp>
    #include <dini>

    #define COLOR_Y 0xE0EA64AA
    #define COLOR_A 0xF97804FF
    #define COLOR_ME 0xC2A2DAAA

    new pass[MAX_PLAYERS][256];
    new 
    skin[MAX_PLAYERS];
    new 
    money[MAX_PLAYERS];
    new 
    fraction[MAX_PLAYERS]; 
    OnGameModeInit() :
    PHP :
    public OnGameModeInit()
    {
    AddPlayerClass(26,  -1974.1481,137.7335,27.6875,91.5174000000);//
    AddPlayerClass(285,  -1974.1481,137.7335,27.6875,91.5174000000);//
    return 1;

    . OnPlayerRequestClass(playerid, classid):
    PHP :
    public OnPlayerRequestClass(playeridclassid)
    {
        switch(
    fraction[playerid])
        {
        case 
    0:
        {
        
    SetPlayerPos(playerid1958.37831343.157215.3746);
        
    SetPlayerCameraLookAt(playerid1958.37831343.157215.5746);
        
    SetPlayerCameraPos(playerid,1960.24561342.157216.3746);//+2; -1; 0
        
    SetPlayerFacingAngle(playerid,220.0);
        }
        case 
    1:
        {
        
    SpawnPlayer(playerid);
        
    SetSpawnInfo(playerid,0,skin[playerid],-1974.1481,137.7335,27.6875,91.5174,0,0,0,0,0,0);
        }
        case 
    2:
        {
        
    SpawnPlayer(playerid);
        
    SetSpawnInfo(playerid,0,skin[playerid],-1627.8296,693.3826,6.9881,177.3655,0,0,0,0,0,0);
        }
        }
        return 
    1;

    . :
    OnPlayerConnect(playerid) :
    PHP :
    public OnPlayerConnect(playerid)
    {
            new 
    fn[256];
            
    format (fn,256,"%s.ini",PlayerName(playerid));
            if(!
    dini_Exists(fn))
            {
            
    dini_Create(fn);
            new 
    s[128];
            
    format(s,sizeof(s),"  .\n\n : %s\n\n :",PlayerName(playerid));
            
    ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"  !",s," "," ");
            return 
    1;
            }
            else
            {
            new 
    s[128];
            
    format(s,sizeof(s)," , %s!\n\n  :",PlayerName(playerid));
            
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"  !",s," "," ");
            return 
    1;
            }

    ini .
    . : OnDialogResponse :
    PHP :
    public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
    {
        new 
    fn[256];
        
    format (fn,256,"%s.ini",PlayerName(playerid));

        if(
    dialogid == 0)
        {
        if(
    response)
        {
        new 
    str[256];
        
    format(str256"%s,    !"PlayerName(playerid));
        
    SendClientMessage(playeridCOLOR_Ystr);
        
    dini_Set(fn,"Pass",inputtext);
        
    dini_IntSet(fn,"Skin"26);
        
    dini_IntSet(fn,"Money",1000);
        
    dini_IntSet(fn,"Fraction",0);
        new 
    s[128];
        
    format(s,sizeof(s)," , %s!\n\n  :",PlayerName(playerid));
        
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"  !",s," "," ");
        }
        else
        {
        
    SendClientMessage(playeridCOLOR_A"   !");
        
    SetSpawnInfo(playerid,0,285,-1974.1481,137.7335,27.6875,91.5174,0,0,0,0,0,0);
        
    SpawnPlayer(playerid);
        
    Kick(playerid);
        }
        return 
    1;
        }

        if(
    dialogid == 1)
        {
        if(
    response)
        {
        
    pass[playerid] = dini_Get(fn,"Pass");
        if(
    strcmp(pass[playerid],inputtext,false,strlen(pass[playerid])) == 0)
        {
        
    //===================================================!
        
    money[playerid]=dini_Int(fn,"Money");
        
    fraction[playerid]=dini_Int(fn,"Fraction");
        
    skin[playerid]=dini_Int(fn,"Skin");

        new 
    msg[256];

        switch(
    fraction[playerid])
        {
        case 
    0:
        {
    // 1   ,  ,  -
        
    format (msg,256," * %s      =)",PlayerName(playerid));
        
    SendClientMessage(playeridCOLOR_MEmsg);
        
    GivePlayerMoney(playerid,money[playerid]);
        }
        case 
    1:
        {
    //  1   ,    (  F4),  -
        
    format (msg,256," * %s   ",PlayerName(playerid));
        
    SendClientMessage(playeridCOLOR_MEmsg);
        
    SetSpawnInfo(playerid,0,skin[playerid],-1974.1481,137.7335,27.6875,91.5174,0,0,0,0,0,0);
        
    SpawnPlayer(playerid);
        
    GivePlayerMoney(playerid,money[playerid]);
        }
        case 
    2:
        { 
    //        ,   ,  - 
        
    format (msg,256," * %s   ",PlayerName(playerid));
        
    SendClientMessage(playeridCOLOR_MEmsg);
        
    SetSpawnInfo(playerid,0,skin[playerid],-1627.8296,693.3826,6.9881,177.3655,0,0,0,0,0,0);
        
    SpawnPlayer(playerid);
        
    SetPlayerColor(playerid,0x0000BBAA);
        
    GivePlayerMoney(playerid,money[playerid]);
        }
        }
        
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!
        
    }
        else
        {
        
    SetSpawnInfo(playerid,0,285,-1974.1481,137.7335,27.6875,91.5174,0,0,0,0,0,0);
        
    SpawnPlayer(playerid);
        
    SendClientMessage(playeridCOLOR_A"  !");
        
    Kick(playerid);
        }
        }
        else
        {
        
    SetSpawnInfo(playerid,0,285,-1974.1481,137.7335,27.6875,91.5174,0,0,0,0,0,0);
        
    SpawnPlayer(playerid);
        
    SendClientMessage(playeridCOLOR_A"   !");
        
    Kick(playerid);
        }
        return 
    1;
        }

        return 
    1;

    : , , . - . 2 : OnPlayerDisconnect OnPlayerSpawn:
    PHP :
    public OnPlayerDisconnect(playeridreason)
    {
    // 
        
    new fn[256];
        
    format(fn,256,"%s.ini",PlayerName(playerid));
        
    dini_IntSet(fn,"Skin"GetPlayerSkin(playerid));
        
    dini_IntSet(fn,"Money"GetPlayerMoney(playerid));
        
    dini_IntSet(fn,"Fraction"fraction[playerid]);
        return 
    1;
    }

    public 
    OnPlayerSpawn(playerid)
    {
    /*         ,       
      0-    
      1-      
      2-
     */
        
    new fn[256];
        
    format (fn,256,"%s.ini",PlayerName(playerid));
        
    fraction[playerid] = dini_Int(fn,"Fraction");
        if (
    fraction[playerid] ==0)
        {
        
    fraction[playerid] =1;
        
    dini_IntSet(fn,"Fraction"fraction[playerid]);
        }
        return 
    1;

    , . - . :
    PHP :
    stock PlayerName(playerid){
    new 
    pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    return 
    pname;} 
    .

    , F6
    :vadosnn
  2. 13 c Andrey_Kiryuhin :

    .Happy (20.01.2012), DeIMoS (24.03.2011), Elantra (12.12.2011), fenix05 (08.11.2011), Grad42rus (22.02.2012), HarryE (23.03.2011),  (07.02.2012), KinG_95 (16.03.2011), kiruxa125 (15.09.2011), Maxim_Shmakov (07.12.2012), Steve (14.07.2011), Tupac (01.08.2011), [Corleone] (09.04.2011)

  3. #2

      DeIMoS

    :
    :01.03.2011
    :4,420
    :1242 [+/-] 
    dini?)
  4. #3
  5. 2 c Mr. Oscar :

    DeIMoS (23.03.2011), fenix05 (08.11.2011)

  6. #4

      DeIMoS

    :
    :01.03.2011
    :4,420
    :1242 [+/-] 
    =) + =) ( . " - , Oscar_Monrique." =D
  7. #5

      HarryE

    :
    :03.02.2011
    :1,656
    :429 [+/-] 
    5 :D
    new.pwn , . :)
  8. #6

      CycJluk

    :
    :23.03.2011
    :56
    :0 [+/-] 
  9. #7

      Benson Miller

    :
    :05.03.2011
    :408
    :16 [+/-] 
    , .
    PHP :
    C:\Documents and Settings\Joker.910E225DE502473\ \Test\Varlando RolePlay\gamemodes\tgl.pwn(57) : error 017undefined symbol "fraction"
    C:\Documents and Settings\Joker.910E225DE502473\ \Test\Varlando RolePlay\gamemodes\tgl.pwn(57) : error 029: invalid expressionassumed zero
    C
    :\Documents and Settings\Joker.910E225DE502473\ \Test\Varlando RolePlay\gamemodes\tgl.pwn(57) : error 029: invalid expressionassumed zero
    C
    :\Documents and Settings\Joker.910E225DE502473\ \Test\Varlando RolePlay\gamemodes\tgl.pwn(57) : fatal error 107too many error messages on one line

    Compilation aborted
    .Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


    4 Errors

  10. #8

      HarryE

    :
    :03.02.2011
    :1,656
    :429 [+/-] 
    57 !
  11. #9

      Benson Miller

    :
    :05.03.2011
    :408
    :16 [+/-] 
    (57) switch(fraction[playerid])
  12. #10

      [Corleone]

    :
    :10.03.2011
    :, ..
    :101
    :12 [+/-] 
    ++ )
    [ , ] (c)
    PAWNO =D

, : 1

(, , , , , ), , .
!
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