SoMoRay Posted February 20, 2013 Share Posted February 20, 2013 طلب 3 اكواد لشوب 1 - Reapir 2- Flip 3-Nitro Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 getPlayerMoney takePlayerMoney getPedOccupiedVehicle fixVehicle addVehicleUpgrade getVehicleRotation setVehicleRotation Link to comment
SoMoRay Posted February 20, 2013 Author Share Posted February 20, 2013 getPlayerMoney takePlayerMoney getPedOccupiedVehicle fixVehicle addVehicleUpgrade getVehicleRotation setVehicleRotation ممكن مثال Link to comment
iPrestege Posted February 20, 2013 Share Posted February 20, 2013 من شوبي القديم : 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
===|OSAMA|=== Posted February 20, 2013 Share Posted February 20, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now