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







VK: vk.com/sergey68

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

:

1 4 4

  1. #1

      ppzvovka

    :
    :15.11.2010
    :77
    :99 [+/-] 

    forward:
    :
    PHP :
    forward GruzLicensecar(carid); 
    PHP :
    pGruzLic//         
     enum pInfo 
    PHP :
    PHP :
    pGruzLic,//     
    public OnPlayerConnect :

    PHP :
    PlayerInfo[playerid][pGruzLic] = 0;//          0 
    public OnPlayerRegister

    PHP :
    format(var, 128"GruzLicense=%d\n",PlayerInfo[playerid][pGruzLic]);fwrite(hFile, var); 
    public OnPlayerLogin :

    PHP :
    if( strcmpkey "GruzLicense" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGruzLic] = strvalval ); } 
    public OnPlayerUpdateEx :

    PHP :
    format(var, 128"GruzLicense=%d\n",PlayerInfo[playerid][pGruzLic]);fwrite(hFile, var);//   
    PHP :
    public GruzLicensecar(carid): 
    PHP :
    public GruzLicensecar(carid

    new 
    model=GetVehicleModel(carid); 
    switch(
    model

    case 
    403: return 1
    case 
    406: return 1
    case 
    408: return 1
    case 
    414: return 1
    case 
    427..428: return 1
    case 
    433: return 1
    case 
    443: return 1
    case 
    455..456: return 1
    case 
    486: return 1
    case 
    498..499: return 1
    case 
    508: return 1
    case 
    514..515: return 1
    case 
    524: return 1
    case 
    531..532: return 1
    case 
    572..573: return 1
    case 
    578: return 1
    case 
    601: return 1
    case 
    609: return 1
    default: return 
    0

    return 
    0;  

    case 403: return 1; // , ))
    if(newstate == PLAYER_STATE_DRIVER) :

    PHP :
    if(GruzLicensecar(newcar)) 

        if(
    PlayerInfo[playerid][pGruzLic] != 1
        { 
            
    SendClientMessage(playeridCOLOR_YELLOW"      ."); 
            
    RemovePlayerFromVehicle(playerid); 
            
    TogglePlayerControllable(playerid1); 
        } 

    PHP :
     public OnPlayerCommandText    /agl(  
    PHP :
    else if(strcmp(x_nr,"gruzlic",true) == 0

        
    tmp strtok(cmdtextidx); 
        if(!
    strlen(tmp)) 
        { 
            
    SendClientMessage(playeridCOLOR_WHITE"[Info]: /agl gruzlic [ID /_]"); 
            return 
    1
        } 
        
    giveplayerid ReturnUser(tmp); 
        if(
    IsPlayerConnected(giveplayerid)) 
        { 
            if(
    giveplayerid != INVALID_PLAYER_ID
            { 
                if(
    PlayerInfo[giveplayerid][pPassport] == 1)//    
                

                    
    GetPlayerName(giveplayeridgiveplayersizeof(giveplayer)); 
                    
    format(stringsizeof(string), "   %s    .",giveplayergiveplayerid); 
                    
    SendClientMessage(playeridCOLOR_LIGHTBLUEstring); 
                    
    format(stringsizeof(string), " %s       .",sendername); 
                    
    SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring); 
                    
    PlayerInfo[giveplayerid][pGruzLic] = 1
                    return 
    1
                } 
                else 
                { 
                    
    SendClientMessage(playeridCOLOR_GREY"    ."); 
                    return 
    1
                } 
            } 
        } 
        else 
        { 
            
    SendClientMessage(playeridCOLOR_GREY"    !"); 
            return 
    1
        } 

    PHP :
                
    PHP :
      "/givelicense"    :
    PHP :
    else if(
    strcmp(x_nr,"gruzlic",true) == 0

        
    tmp strtok(cmdtextidx); 
        if(!
    strlen(tmp)) 
        { 
            
    SendClientMessage(playeridCOLOR_WHITE": /givelicense gruzlic [ID / 
    _] []"
    ); 
            return 
    1
        } 
        
    giveplayerid ReturnUser(tmp); 
        if(
    IsPlayerConnected(giveplayerid)) 
        { 
            if(
    giveplayerid != INVALID_PLAYER_ID
            { 
                if(
    PlayerInfo[giveplayerid][pPassport] == 1
                { 
                    
    tmp strtok(cmdtextidx); 
                    if(!
    strlen(tmp)) 
                    { 
                        
    SendClientMessage(playeridCOLOR_GRAD2": /givelicense gruzlic [ID /_] []"); 
                        return 
    1
                    } 
                    new 
    price
                    
    price strval(tmp); 
                    if(
    price 200 || price 2000) { SendClientMessage(playeridCOLOR_GREY"    200  2000!"); return 1; } 

                    
    GetPlayerName(giveplayeridgiveplayersizeof(giveplayer)); 
                    
    format(stringsizeof(string), "        %s.",giveplayer); 
                    
    SendClientMessage(playeridCOLOR_LIGHTBLUEstring); 
                    
    format(stringsizeof(string), " %s       .",sendername); 
                    
    SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring); 
                    
    PlayerInfo[giveplayerid][pGruzLic] = 1
                    
    format(stringsizeof(string), "B  %s    $%d ."giveplayerprice); 
                    
    SendClientMessage(playeridCOLOR_WHITEstring); 
                    
    format(stringsizeof(string), "%s      $%d, ( /accept license)  ."sendernameprice); 
                    
    SendClientMessage(giveplayeridCOLOR_WHITEstring); 
                    
    LicenseOffer[giveplayerid] = playerid
                    
    LicensePrice[giveplayerid] = price
                    
    LicenseType[giveplayerid] = 1
                    return 
    1
                } 
                else 
                { 
                    
    SendClientMessage(playeridCOLOR_GREY"    !"); 
                    return 
    1
                } 
            } 
        } 
        else 
        { 
            
    SendClientMessage(playeridCOLOR_GREY"    !"); 
            return 
    1
        } 

    :

    PHP :
    SendClientMessage(playeridCOLOR_WHITE": Driving, Flying, Sailing, Fishing");// Fishing  ,Gruzlic 
    :
    public OnPlayerCommandText :

    PHP :
    if(strcmp(cmd"/buygruzlic"true) == 0

        if(
    UsedCom[playerid]>0) return SendClientMessage(playeridCOLOR_WHITE"     1 "
        if(
    IsPlayerConnected(playerid)) 
        { 
            if(
    IsPlayerInRangeOfPoint(playerid3,1490.3195,1305.6976,1093.2964)) 
            { 
                if(
    PlayerInfo[playerid][pGruzLic] == 0
                { 
                    if(
    GetPlayerMoney(playerid) < 4500
                    { 
                        
    SendClientMessage(playeridCOLOR_GREY"    ,    "); 
                        return 
    1
                    } 
                    else 
                    { 
                        
    SendClientMessage(playeridCOLOR_LIGHTBLUE"      ,  $4, 500"); 
                        
    SafeGivePlayerMoney(playerid, - 4500); 
                        
    PlayerInfo[playerid][pGruzLic] = 1
                        
    OnPlayerUpdateEx(playerid); 
                        new 
    ymd
                        new 
    h,mi,s
                        
    getdate(y,m,d); 
                        
    gettime(h,mi,s); 
                        
    format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [ ] -> /buygruzlic",d,m,y,h,mi,s,sendername); 
                        
    CommandLog(string); 
                    } 
                } 
                else 
                { 
                    
    SendClientMessage(playeridCOLOR_LIGHTBLUE"        "); 
                    return 
    1
                } 
            } 
        } 
        
    UsedCom[playerid]=1
        return 
    1

    public OnPlayerPickUpPickup(playerid, pickupid) :

    PHP :
    if ( pickupid == license_pu2 

        
    GameTextForPlayer(playerid"~y~You can get a ~r~Gruzlic license ~n~~w~Type /buygruzlic to get a license ~n~~r~(Costs: 4 000 $)"50003); 

    : Nik_Hooliga
  2. #2

      Blad_Gad

    :
    :24.01.2011
    :
    :773
    :373 [+/-] 
    , , :
  3. #3

      Ben_Lovejoy

    :
    :08.08.2012
    :
    :603
    :134 [+/-] 
    ..
    1 - =)))
  4. #4

      VirtProject

    :
    :11.02.2013
    :,.
    :164
    :34 [+/-] 
    . !

, : 0

.

200, 2000, 3.2, 500, 5000, , , , amp, cmd, , edm, , , , , , game, , , music forum, news, , php, playerid, playerinfo, string, white

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