-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
---------------------------------- --SCRIPT MADE BY -[xXx]-Pr0RaC3R-- ---------------------------------- ---------------------------- --New Commands Version 1.0-- ---------------------------- ---------------------------- -- Command 1 --------------- ---------------------------- function addCommand1(thePlayer,commandName) outputChatBox ( getPlayerName(thePlayer).. "is now AFK.", getRootElement(), 255, 0, 0, true ) end addCommandHandler ("afk", addCommand1) ---------------------------- -- Command 2 --------------- ---------------------------- function addCommand2(thePlayer,commandName) outputChatBox ( getPlayerName(thePlayer).. " will be right back.", getRootElement(), 255, 0, 0, true ) end addCommandHandler ("brb", addCommand2) ---------------------------- -- Command 3 --------------- ---------------------------- function addCommand3(thePlayer,commandName) outputChatBox ( getPlayerName(thePlayer).. "thinks this was a good game.", getRootElement(), 255, 0, 0, true ) end addCommandHandler ("gg", addCommand3) ---------------------------- -- Command 4 --------------- ---------------------------- function addCommand4(thePlayer,commandName) outputChatBox ( getPlayerName(thePlayer).. "thinks this was a bad game.", getRootElement(), 255, 0, 0, true ) end addCommandHandler ("bg", addCommand4) ---------------------------- -- Command 5 --------------- ---------------------------- function addCommand5(thePlayer,commandName) outputChatBox ( getPlayerName(thePlayer).. "thinks that was unfair.", getRootElement(), 255, 0, 0, true ) end addCommandHandler ("unfair", addCommand5)
-
function take(thePlayer, command, who, amount) local takeFrom = getPlayerFromName ( who ) if takeFrom and isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Admin" ) ) then takePlayerMoney (takeFrom, math.abs(tonumber(amount))) end end addCommandHandler ("take", take)
-
this is not my script, you did a mess with it.
-
maybe better using: toggleControl https://wiki.multitheftauto.com/wiki/ToggleControl
-
change posZ +1 and it will raise up.
-
lol aiboforcen, his code didn't make any sense for me.
-
try this, addEventHandler("onPlayerPickUpRacePickup",getRootElement(), function (pickupID, pickupType, vehicleModel) if pickupType == "vehiclechange" then if vehicleModel == 425 then local acc = getPlayerAccount(source) local accountdata = getAccountData(acc,"exp") if accountdata then setAccountData(acc,"exp",tonumber(getAccountData(acc,"exp"))+10) setElementData(source,"exp",tonumber(getElementData(source,"exp"))+10) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+10,source,0,255,0) else setAccountData(acc,"exp",1) setElementData(source,"exp",tonumber(getElementData(source,"exp"))+10) outputChatBox("Exp earned: ".. tonumber(getAccountData(acc,"exp"))+10,source,0,255,0) end end end end)
-
mysql functions are only server side, that must be the problem.
-
Don't you have any shop in your city where you can buy it?
-
Just wait for MTA 1.1 to be released
-
don't say you didn't, https://community.multitheftauto.com/index.php?p=resources&s=details&id=1557 original meta.xml: <meta> <info author="NeXTreme" name="Login_panel" version="1.0.0" type="script"/> <script src="loginpanel_server.lua" type="server" /> <script src="loginpanel_client.lua" type="client" /> <file src="logo.png" /> </meta>
-
why you steal the real author credits? i think that is kids job.
-
they worked fine with me, also the script is not kicking you from the server.
-
Introduction to script the GUI: https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI In-game GUI editor: https://community.multitheftauto.com/index.php?p=resources&s=details&id=141 Good luck.
-
i don't understand, you want to disable the F1 menu or the map?
-
use the event onMarkerHit and setVehicleColor. https://wiki.multitheftauto.com/wiki/OnMarkerHit https://wiki.multitheftauto.com/wiki/SetVehicleColor
-
i really don't understand your question, it doesn't makes much sense for me.
-
uhm is this the full script? since i don't see any "value" argument anywhere.
-
add this under the buttons. guiSetEnabled(aTab1.Jail,true) guiSetEnabled(aTab1.Relase,true)
-
to make the "push" function you have to use setElementVelocity --> https://wiki.multitheftauto.com/wiki/SetElementVelocity and to bind the key just use bindKey --> https://wiki.multitheftauto.com/wiki/BindKey
-
well, i added a "Give moderator" button to the admin panel and it works fine.
-
--Client function showgui () weapwindow = guiCreateWindow(307,127,480,516,"Weapons Menu",false) BuyAK = guiCreateButton(95,76,117,59,"Ak47 - 500$",false,weapwindow) BuyM4 = guiCreateButton(96,154,116,57,"M4 - 600$",false,weapwindow) BuyMP5 = guiCreateButton(97,302,116,57,"MP5 - 400$",false,weapwindow) BuyUZI = guiCreateButton(96,227,116,57,"UZI - 350$",false,weapwindow) BuyShotgun = guiCreateButton(278,300,117,59,"Shotgun - 400$",false,weapwindow) BuyComShot = guiCreateButton(278,227,117,59,"Combat Shotgun - 450$",false,weapwindow) BuyDeagle = guiCreateButton(277,76,117,59,"Deagle - 200$",false,weapwindow) BuyPistol = guiCreateButton(277,152,117,59,"Pistol - 150$",false,weapwindow) CloseButton = guiCreateButton(180,375,108,41,"Close",false,weapwindow) Text_Memo = guiCreateMemo(97,435,260,45,"You can buy weapons here for in DM.",false,weapwindow) guiMemoSetReadOnly(Text_Memo,true) guiSetVisible ( weapwindow, true ) showCursor(true) addEventHandler("onClientGUIClick", BuyAK, getAK, false) addEventHandler("onClientGUIClick", CloseButton, hidegui, false) end function hidegui() if guiGetVisible ( weapwindow ) then -- if it is, we hide it guiSetVisible ( weapwindow, false ) showCursor( false ) end end addCommandHandler ( "weapons", showgui ) function getAK ( playerSource ) local money = getPlayerMoney ( getLocalPlayer() ) if (money > 500) then triggerServerEvent( "playerwantsAK", getLocalPlayer(), getLocalPlayer()) else outputChatBox("You don't have enough cash.", 230,0,0) end end
-
you aren't triggering any event in your script
-
function (myevent,myevent2,myevent3) its easy o_O
