Jump to content

طلب اكواد شوب


SoMoRay

Recommended Posts

من شوبي القديم :mrgreen: :

function() 
  local Money = getPlayerMoney(source) 
  local vehicle = getPedOccupiedVehicle(source) 
  if vehicle then 
    if Money >= 1000 then 
      takePlayerMoney(source, 1000) 
      fixVehicle(vehicle) 
      outputChatBox("* [ #0069c7" .. getPlayerName(source) .. " #ffffff]#0069c7 Has Bought A Repair", root, 255, 255, 255, true) 
    else 
      outputChatBox("* You Don't Have Enough Money", source, 255, 0, 0) 
    end 
  else 
    outputChatBox("* You Are Not in Vehicle", source, 255, 0, 0) 
  end 
end 
) 
Link to comment

1- Repair -- Server Side !

function ( ) 
    if ( isPedInVehicle ( source ) ) then 
        if ( getPlayerMoney (source) >= السعر ) then 
                takePlayerMoney ( source, السعر ) 
                fixVehicle ( getPedOccupiedVehicle ( source ) ) 
        else 
            outputChatBox ( "* You don't have $'السعر' to buy (Repair) !", source, 255, 0, 0, true ) 
        end      
    else 
        outputChatBox ( "* You must in vehicle to buy Repair!", source, 200, 0, 0, true ) 
    end 
end 

2- Flip -- Server Side !

function ( ) 
    if ( isPedInVehicle ( source ) ) then 
        if ( getPlayerMoney ( source ) >= السعر ) then 
            takePlayerMoney ( source, السعر ) 
            rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle ( source ) )         
            setVehicleRotation ( getPedOccupiedVehicle ( source ), rx + 180, ry, rz + 180 ) 
        else 
            outputChatBox ( "* You don't have $'السعر' to buy (Flip) !", source, 255, 0, 0, true ) 
        end      
    else 
        outputChatBox ( "* You must in vehicle to buy Flip.", source, 200, 0, 0, true ) 
    end 
end 

3- Nitro -- Server Side !

function ( ) 
    if ( isPedInVehicle ( source ) ) then 
        if ( getPlayerMoney (source) >= السعر ) then 
            takePlayerMoney ( source, السعر ) 
            addVehicleUpgrade ( getPedOccupiedVehicle ( source ), 1010 ) 
        else 
            outputChatBox ( "* You don't have $'السعر' to buy (Nitro) !", source, 255, 0, 0, true ) 
        end      
    else 
        outputChatBox ( "* You must in vehicle to buy Nitro.", source, 200, 0, 0, true ) 
    end 
end 

هنآ ليست ثابتة source ملآحظة #

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...