xploziv_mc Posted January 2, 2012 Posted January 2, 2012 I need resource for push,smash and others like that...I search in community but I can't find anything like that what I want....plz help
CapY Posted January 2, 2012 Posted January 2, 2012 https://community.multitheftauto.com/index.php?p= ... ls&id=2877
xploziv_mc Posted January 2, 2012 Author Posted January 2, 2012 This work but I want to have commands like /push [nick] cuz I want to bind that and if I die to press anybutton and push push smash....
HunT Posted January 2, 2012 Posted January 2, 2012 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
karlis Posted January 3, 2012 Posted January 3, 2012 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!
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