Jump to content
Ak47_codplayer

[Script]Prizma iekraut izkraut

Recommended Posts

ludzu gribu padalīties ar prizmas skriptu kur var iekraut uz iznkraut

 

 

////// Iekraut Prizma
CMD:iekraut(playerid, params[]) // Nume.Mihailow
{
    if(PlayerLogged[playerid] == 0) return true;
    if(PlayerInfo[playerid][pMember] != F_PRIZMA) return SendClientMessage(playerid, COLOR_GREY, "Jus neesat Sia 'TB' darbinieks!");
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "Jums jabut pie stures!");
    if(IsPlayerInRangeOfPoint(playerid, 15.0, 2368.0691,2755.6472,10.8203))
    {
        if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, COLOR_WHITE, "Ievadiet: /iekraut [kg daudzums]");
        if(GetPVarInt(playerid,"TRUCKVEH") != 0) return SendClientMessage(playerid, COLOR_WHITE, "Jus jau pasutijat!");
        {
            if(params[0] < 1 || params[0] > 250) return SendClientMessage(playerid, COLOR_GREY, "No 1 lidz 250");
        }
        if(GetMoney(playerid) < params[0]*1) return SendClientMessage(playerid, COLOR_WHITE, "Jums nav tik daudz naudas!");
        SendMes(playerid, -1, "Jus iekravat %d kg ar granti par %d eiro!",params[0],params[0]*1);
        SetPVarInt(playerid,"TruckType",1);
        SetPVarInt(playerid,"TruckGruz",params[0]);
        GiveMoney(playerid, -params[0]*1);
        SendClientMessage(playerid, -1, "Piekedejiet savu kravu pie Jusu auto!");
        SendClientMessage(playerid, -1, "Brauciet uz izkraushanas vietu un rakstiet: /izkraut");
        SetPlayerCheckpoint(playerid, -2435.5017,2448.6787,13.3473, 2.0);
        Prizma1[playerid] = 1;
        new carid = CreateVehicle(450, 2372.1685,2751.5420,10.8203,177.5953, 1, 0, 30000);
        SetPVarInt(playerid,"TRUCKVEH",carid);
          SetPVarInt(playerid,"CountPrizma",GetPVarInt(playerid,"CountPrizma") + 1);
    }
    return true;
}
////// izkrautp Prizma
CMD:izkraut(playerid, params[]) // Nume.Mihailow
{
    if(PlayerLogged[playerid] == 0) return true;
    if(PlayerInfo[playerid][pMember] != F_PRIZMA) return SendClientMessage(playerid, COLOR_GREY, "Jus neesat Prizmas darbinieks!");
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "Jums jabut pie stures!");
    if(!IsPlayerInRangeOfPoint(playerid, 50.0, -111.8028,2948.2605,1.7877,268.8105)) return SendClientMessage(playerid, COLOR_GREY, "Jus neatrodies SF Chilliad");
    {
        if(GetPVarInt(playerid,"TRUCKVEH") != 0)
        {
            if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) != 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "Jus neesat piegadatajs!");
                ResetTruck(playerid);
                return true;
            }
            switch(GetPVarInt(playerid,"TruckType"))
            {
            case 1:
                {
                    SendMes(playerid, -1, "Jus izkravat %d kg ar Granti par $%d un vel 1250 eiro premiju uz rokas!",GetPVarInt(playerid,"TruckGruz"),GetPVarInt(playerid,"TruckGruz")*2);
                    GiveMoney(playerid,GetPVarInt(playerid,"TruckGruz")*2);
                    GiveMoney(playerid, 1200);
                     FracBank[26] += 500;
                     SetOtherInt("prizmabank", FracBank[26]);
                    PlayerInfo[playerid][pTruckSkill] += 1000;
                       PrizmaBank+=5000;
                       SetOtherInt("prizmabank", PrizmaBank);
                    ResetTruck(playerid);
                }
            }
        }
    }
    return true;
}
 

 

ludzu ņemiet cik uziet

 

Edited by Ak47_codplayer
  • Like 1
  • Sad 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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