Jump to content

تعديل على سكربت


Recommended Posts

السلام عليكم و رحمة اللع تعالى و بركاته

ابي تعدلون على سكربت

وظيفة السكربت هو مقر خاص

بس الوظيفة ذي هي تخلي اللي يدخل المقر و شخصيته مو 123 يطلق عليه صواريخ

المطلوب :

مكان ما يشوف من الشخصية

يكتشف الاسم ، اذا ممكن تسوون اسماء كثيرة

#[iMr][E'rrOr]_N

kiNg2012

السكربت :

g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
createBlip ( 193.248, 1890.01, 17.234, 23 ) 
  
g_root = getRootElement () 
  
--rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
--rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
  
function hit ( pla, dim, hitElement ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local skin = getElementModel ( pla ) 
                        if skin == 123 then 
                outputChatBox ( "Welcome to The Admin-Base, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getPlayerName(pla).." has entered the admin-Base Get Out Of Your Are DEAD!!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local skin = getElementModel ( pla ) 
                        if skin == 123 then 
                outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", g_base_col, leave ) 

Link to comment
يا اخي حاولت ما زبط

انا قبل ما اطرح الموضوع احاول وحدي ^^

الرجاء تعديل صحيح ما يخرب سكربت

وريني محاولتك

+

لازم تعدل على سطر 31 و 32

يخرب السكربت

محاولتي

g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
createBlip ( 193.248, 1890.01, 17.234, 23 ) 
  
g_root = getRootElement () 
  
--rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
--rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
  
function hit ( pla, dim, hitElement ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local = getPlayerName ( thePlayer ) ~= "#[iMr][E'rrOr]_N" 
                        if getPlayerName == "#[iMr][E'rrOr]_N" then 
                outputChatBox ( "Welcome to The Admin-Base, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getPlayerName(pla).." has entered the admin-Base Get Out Of Your Are DEAD!!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local = getPlayerName ( thePlayer ) ~= "#[iMr][E'rrOr]_N" 
                        if getPlayerName == "#[iMr][E'rrOr]_N" then 
                outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", g_base_col, leave ) 

Link to comment
g_base_col = createColCuboid ( 97.3376, 1800.0384, -32.0937, 250, 280, 120 ) 
createBlip ( 193.248, 1890.01, 17.234, 23 ) 
  
g_root = getRootElement () 
  
--rocketOne = createMarker ( -2931.5136, 454.4492, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
--rocketTwo = createMarker ( -2931.5932, 487.1994, 17.3671, "corona", 1.5, 255, 0, 0, 150 ) --test marker 
  
function hit ( pla, dim, hitElement ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local playerName = getPlayerName ( pla )-- ياريت تشوف التغيير  ..  
                        if PlayerName == ألأسم then-- وهنا . . 
                outputChatBox ( "Welcome to The Admin-Base, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "true" ) 
                triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) 
                outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 ) 
                outputChatBox ( "* "..getPlayerName(pla).." has entered the admin-Base Get Out Of Your Are DEAD!!", g_root, 255, 0, 0 ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", g_base_col, hit ) 
  
function leave ( pla, dim ) 
    if getElementType ( pla ) == "player" then 
    local vehicle = getPedOccupiedVehicle ( pla ) 
        if vehicle or not vehicle then 
            local playerName = getPlayerName ( pla )-- ياريت تشوف التغيير  ..  
                        if PlayerName == ألأسم then-- وهنا . . 
                outputChatBox ( "Good Bye!", pla, 0, 100, 0 ) 
            else 
                setElementData ( pla, "inRestrictedArea", "false" ) 
                triggerClientEvent ( pla, "destroyTimers", g_root, pla ) 
                outputDebugString ( "*"..getPlayerName(pla).." has left col shape" ) 
            end 
        end 
    end 
end 
addEventHandler ( "onColShapeLeave", g_base_col, leave ) 

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