Jump to content

طلب فنكنشين


Recommended Posts

  • Scripting Moderators

آلفنكشن الأول

إعطآء اللآعب درع

آلنفكشن الثآني

إعطآء لآعب سيآرة

دورتهم بآلويكي م لقيتهم

Link to comment

setPlayerArmor 

الطلب التاني

givePlayerVehicle 

Table = {} 
function givePlayerVehicle(thePlayer,ID) 
    if getElementType (thePlayer) == "player" then 
        if type(ID) == "number" then 
            if thePlayer and ID then 
                local x,y,z = getElementPosition(thePlayer) 
                Table[thePlayer] = createVehicle(tonumber(ID),x,y,z) 
                warpPedIntoVehicle(thePlayer,Table[thePlayer]) 
            else 
                error("There is Argument minus") 
            end 
        else 
            error("Bad Argument 2 must number") 
        end 
    else 
        error("Bad Argument 1 must player") 
    end 
end 

givePlayerVehicle(source,id)

source = علي حسب كودك

Edited by Guest
Link to comment
setPlayerArmor 

الطلب التاني

givePlayerVehicle 

Table = {} 
function givePlayerVehicle(thePlayer,ID) 
    if getElementType (thePlayer) == "player" then 
        if type(ID) == "number" then 
            if thePlayer and ID then 
                local x,y,z = getElementPosition(thePlayer) 
                Table[thePlayer] = createVehicle(tonumber(ID),x,y,z) 
                warpPedIntoVehicle(thePlayer,Table[thePlayer]) 
            else 
                error("There is Argument minus") 
            end 
        else 
            error("Bad Argument 2 must number") 
        end 
    else 
        error("Bad Argument 1 must player") 
    end 
end 

givePlayerVehicle(source,id)

source = علي حسب كودك

This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use setPedArmor instead.

+ نفرض انه يبي يسوي السياره بإحداثيات معينه مايبيها على احداثيات اللاعب؟ الأفضل تعطية الوظيفه من الويكي,

setPedArmor 
createVehicle 
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...