Jump to content

I need resource for push,smash and others like that


xploziv_mc

Recommended Posts

Push :

function "name function" (thePlayer "admin", command "commandName", player "name player") 

Account = getPlayerAccount(thePlayer) 

getAccountName(Account) 

if isObjectInACLGroup 

if not player then 

outputChatBox --msg for admin "player not found" 

elseif isPedInVehicle(player) then 

getElementVelocity 

setElementVelocity --z+0.30 

outputChatBox( getPlayerName(thePlayer"name admin")..  " push "  ..getPlayerName(player "name player"), getRootElement(), 255, 255, 255, true) 

addCommandHandler --name command + name function 

Smash : (similar push)

setElementVelocity  --z+1.5 

setTimer( down,500,1) 

function down() 

if isPedInVehicle(player) then 

getPedOccupiedVehicle(player) 

setElementVelocity --z-5 

addCommandHandler 

function name part :

function findPlayer(namepart) 
    for i, player in ipairs(getElementsByType("player")) do 
        local name = getPlayerName(player) 
        if string.find(name:lower(), namepart:lower(), 1, true) then 
            return player, name 
        end 
    end 
    return false 
end 

Link to comment
Push :
function "name function" (thePlayer "admin", command "commandName", player "name player") 

Account = getPlayerAccount(thePlayer) 

getAccountName(Account) 

if isObjectInACLGroup 

if not player then 

outputChatBox --msg for admin "player not found" 

elseif isPedInVehicle(player) then 

getElementVelocity 

setElementVelocity --z+0.30 

outputChatBox( getPlayerName(thePlayer"name admin")..  " push "  ..getPlayerName(player "name player"), getRootElement(), 255, 255, 255, true) 

addCommandHandler --name command + name function 

Smash : (similar push)

setElementVelocity  --z+1.5 

setTimer( down,500,1) 

function down() 

if isPedInVehicle(player) then 

getPedOccupiedVehicle(player) 

setElementVelocity --z-5 

addCommandHandler 

function name part :

function findPlayer(namepart) 
    for i, player in ipairs(getElementsByType("player")) do 
        local name = getPlayerName(player) 
        if string.find(name:lower(), namepart:lower(), 1, true) then 
            return player, name 
        end 
    end 
    return false 
end 

omfg, now thats bad formating... merge the codes!

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