BlackIN Posted January 29, 2011 Posted January 29, 2011 i want a Script Which Push a Person 10 meter up by doing this../push please give me Push Script Indeed MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted January 29, 2011 Posted January 29, 2011 We don't accept request, but we can tell you how to do it by yourself functions needed: addCommandHandler getPlayerFromName getElementVelocity setElementVelocity getPedOccupiedVehicle Good luck. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BlackIN Posted January 29, 2011 Author Posted January 29, 2011 Now what to do with it ? MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted January 29, 2011 Posted January 29, 2011 (edited) huh? i gave you the links for the required functions to make your "/push" command, now you gotta think for a while and try to make it, if you have any problem while doing that just reply here Edited January 29, 2011 by Guest San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BlackIN Posted January 29, 2011 Author Posted January 29, 2011 Not Getting at All addcommandhandler contain money script ? I am Totally Confused Please Help me...........Can you make script for me and pm ? MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
BlackIN Posted January 29, 2011 Author Posted January 29, 2011 If you Send I am Very Thankfull To You Please Really Need Help MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted January 29, 2011 Posted January 29, 2011 Don't double-post! i said i we won't make any script, TRY BY YOURSELF. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BlackIN Posted January 29, 2011 Author Posted January 29, 2011 Please help me out if i try i will make this script in 100000 years plesae just give me this script only....... MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted January 29, 2011 Posted January 29, 2011 I'm sorry, everyone has to start some day. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Aibo Posted January 29, 2011 Posted January 29, 2011 please stop posting «pls pls pls» request topics. this forum section is about scripting. if you dont want to even try to learn — i doubt anyone will want to help you and do things for you. ?
BlackIN Posted February 10, 2011 Author Posted February 10, 2011 function push1 ( playerSource, command ) player=getLocalPlayer(playerSource) if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) x,y,z=getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.20) end end addCommandHandler("push", push1) <meta> <script src="push_c.lua" type="client" /> </meta> Now How to Push Others ? And Get a Text in Chat You have been Pushed By Admin Name MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted February 10, 2011 Posted February 10, 2011 You should make it server side then. function push1 (thePlayer, commandName, who) player = getPlayerFromName(who) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) x,y,z = getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.20) outputChatBox("* You have been pushed by ".. getPlayerName(thePlayer),player,0,255,0) end end addCommandHandler("push", push1) <meta> <script src="push_c.lua" type="server" /> </meta> San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BlackIN Posted February 10, 2011 Author Posted February 10, 2011 how to delete this topic ? MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted February 10, 2011 Posted February 10, 2011 You can't do that, if someone else had a problem like this may help him too San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BlackIN Posted February 10, 2011 Author Posted February 10, 2011 Script is Not Working....... Showing bad arguement @ 'IsPedInVechicle' MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Castillo Posted February 10, 2011 Posted February 10, 2011 How are you executing it? you must put the EXACT name to work. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BlackIN Posted February 10, 2011 Author Posted February 10, 2011 i put exact name but not works.......... MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
TAPL Posted February 10, 2011 Posted February 10, 2011 Server-side function push1 ( playerSource, command ) x, y, z = getElementVelocity(playerSource) setElementVelocity ( playerSource, x, y, z+0.20) end addCommandHandler("push", push1) <meta> <script src="push_c.lua" type="server" /> </meta>
SDK Posted February 10, 2011 Posted February 10, 2011 What? That's only working on the player who typed the command ... This has an extra check for you typing the right name: function push1 (thePlayer, commandName, who) player = getPlayerFromName(who) if not player then outputChatBox("* /push: player not found", thePlayer) elseif isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) x,y,z = getElementVelocity(vehicle) setElementVelocity ( vehicle, x, y, z+0.20) outputChatBox("* You have been pushed by ".. getPlayerName(thePlayer),player,0,255,0) end end addCommandHandler("push", push1) Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
BlackIN Posted February 11, 2011 Author Posted February 11, 2011 Script is Working But When i Push SomeOne Message Dosent Show You have been Pushed By Snake MSN/[email protected] Skype="gamer.kunal" Xfire="dmcgamer" What The Fuck Are u Looking Here Post Is Above ^^^^
Aibo Posted February 11, 2011 Posted February 11, 2011 message is shown only to the player you push. ?
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