Jump to content

مساعده اخرى


##GaMeR

Recommended Posts

ابي بدال ما يقتله يحلقه

createTeam('Kidnapping',255,0,0) 
local timer = {} 
local timerS = {} 
  
addEventHandler( 'onPlayerWasted',root,function(attacker) 
    if ( attacker ) and ( attacker ~= source ) and ( getElementType(attacker) == 'player' ) then 
    if ( getPlayerTeam(attacker) ) and ( getTeamName(getPlayerTeam(attacker)) == 'Kidnapping' ) then 
            createBlipAttachedTo(attacker,33) 
            outputChatBox('1000 $ لقد حصلت على',attacker,255,255,0,true) givePlayerMoney(attacker,1000) 
                if not timer[source] or not timerS[source] then 
                    timer[source] = setTimer(function() 
                        spawnPlayer(source, 812.29241943359,-1100.7707519531,25.786060333252, 0,math.random (0,288)) 
                            setElementFrozen(source,true) 
                                outputChatBox('بخطفك [ '..getPlayerName(attacker).. ' ] قام اللاعب',source,255,255,0,true) 
                    end,2000,1,source) 
                    timerS[source] = setTimer(function() setElementFrozen(source,false) setElementPosition(source,896.5, -1114.9, 24.2) outputChatBox('انت الآن حر',source) 
                    end,300000,1,source) 
                end 
            end 
        end 
    end 
) 
  
addEvent( 'SetTeam', true ) 
addEventHandler( 'SetTeam', root,function() 
    setPlayerTeam ( source, getTeamFromName('Kidnapping' )) 
    end 
) 

Link to comment
    createTeam('Kidnapping',255,0,0) 
    local timer = {} 
    local timerS = {} 
      
    addEventHandler( 'onPlayerDamage',root,function(attacker) 
        if ( attacker ) and ( attacker ~= source ) and ( getElementType(attacker) == 'player' ) then 
        if ( getPlayerTeam(attacker) ) and ( getTeamName(getPlayerTeam(attacker)) == 'Kidnapping' ) then 
                createBlipAttachedTo(attacker,33) 
                outputChatBox('1000 $ لقد حصلت على',attacker,255,255,0,true) givePlayerMoney(attacker,1000) 
                    if not timer[source] or not timerS[source] then 
                        timer[source] = setTimer(function() 
                            spawnPlayer(source, 812.29241943359,-1100.7707519531,25.786060333252, 0,math.random (0,288)) 
                                setElementFrozen(source,true) 
                                    outputChatBox('بخطفك [ '..getPlayerName(attacker).. ' ] قام اللاعب',source,255,255,0,true) 
                        end,2000,1,source) 
                        timerS[source] = setTimer(function() setElementFrozen(source,false) setElementPosition(source,896.5, -1114.9, 24.2) outputChatBox('انت الآن حر',source) 
                        end,300000,1,source) 
                    end 
                end 
            end 
        end 
    ) 
      
    addEvent( 'SetTeam', true ) 
    addEventHandler( 'SetTeam', root,function() 
        setPlayerTeam ( source, getTeamFromName('Kidnapping' )) 
        end 
    ) 

جربه

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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