Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. This is off-topic, if i'm right you can do double-posting if you have made an update.
  2. No problem, fell free to ask for help in this forum whenever you need it .
  3. Well, your problem was a really small one, you we'rent passing thePlayer element at all, so I just changed thePlayer to source, source = the player who triggered the event.
  4. Have you copied my latest code? you can see that I changed something else.
  5. -- Spawn Player on join -- function joinHandler( theplayer ) local x = 1959.55 local y = -1714.46 local z = 18 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("#FFFF66Welcome to the server", getRootElement(), 255, 0, 0, true) end -- Get Player X,Y,Z positions with /myPos command -- function getPlayerPosition(thePlayer, command) local x,y,z = getElementPosition(thePlayer) outputChatBox("#FF0000--- Your X, Y, Z positions are: ---", getRootElement(), 255, 0, 0, true) outputChatBox("X: " .. x) outputChatBox("Y: " .. y) outputChatBox("Z: " .. z) end -- Moved the player to new position, defined in gui.lua -- function moveThePlayer(npX,npY,npZ) spawnPlayer(source,npX,npY,npZ) setCameraTarget(source,source) end -- Slay the player, triggered in gui.lua -- function slayPlayer(sourcePlayer) killPed (sourcePlayer, sourcePlayer) end ------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------ -- Give the Player money, triggered in gui.lua function giveMoney ( xAmount ) givePlayerMoney ( source, tonumber(xAmount) ) end ------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onPlayerJoin", getRootElement(), joinHandler) addCommandHandler("myPos", getPlayerPosition) addEvent("movePlayerToPosition",true) addEventHandler("movePlayerToPosition",root,moveThePlayer) addEvent("slayPlayer",true) addEventHandler("slayPlayer",root,killPed) addEvent("giveMoney",true) addEventHandler("giveMoney", getRootElement(), giveMoney)
  6. Well, I can't help you if don't post your code, also, you could also use setElementData and getElementData.
  7. Do you mean send data to the server? If so, then you can use triggerServerEvent function to send data.
  8. The_Kid has leaved MTA, I don't think he'll continue it .
  9. Castillo

    new chat type

    I'm not saying that's wrong, you helped him doing that (in my opinion). And, no, I didn't left SANL.
  10. Castillo

    new chat type

    What will briggs posted is an script from another topic, and yes, it should be to chat with nearly players only.
  11. Another vehicle mod: https://community.multitheftauto.com/ind ... ls&id=2336 Edit: Stolen glue/glue2 resource: https://community.multitheftauto.com/ind ... ls&id=2344 Original: glue2 https://community.multitheftauto.com/ind ... ils&id=360 This speedometer it's the same as another but with different images, I don't know if this should be removed or not: https://community.multitheftauto.com/ind ... ls&id=2342
  12. Jaysd1, what are you saying? you are the one that keep's posting stuff like: "OK", "Ya", "You are right", etc, etc.
  13. So, Arran sent you to piss me off, right? so inmature I can say...... and... if SANL is a rip-off from SAES, what is CIT? a rip-off from SAES too because most of the scripts are EXACTLY the same.
  14. Actually... before CIT there was SANL, everyone know's that, if you don't it's not my problem.
  15. Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=2337
  16. I didn't meant that, I meant a NEW chatbox, that means a custom chatbox system apart from MTA's built-in one. P.S: This code is taken from this topic: viewtopic.php?f=91&t=33677
  17. You aren't helping at all... you just post random stuff to increase your post count.
  18. I'am not sure of what is this actually, is this some kind of new CHAT box system...?
  19. What......? what do you mean?? I seriously don't get your point... P.S: Are you trying to get your post count higher?
  20. Castillo

    Colorblips

    Well, actually 'teamF' is not defined also if i'm right, maybe it should be 'nil' instead? P.S: If you want to correct that, you better EDIT your older post.
  21. I'm not 100% if he's a real CIT member, Arran(CIT owner) said in another topic that he's not from CIT, but he could be lying of course, since I don't remember when this 'Peacemaker' appeared, if I would know the EXACT date it would mean that CIT sent him to piss me off because of joining to SANL.
  22. Castillo

    Colorblips

    What is that? getResource(getThisResource()) ? I personally don't get what did you do here... Maybe you meant, getResourceRootElement(getThisResource()) ?
  23. Castillo

    RPG GameMode

    The best you can do is learn, else if you pay someone to do it it will cost you money (of course).
  24. Castillo

    Problems

    I guess you wanted to create it in the resource, well, then you should have used server side file functions.
  25. Castillo

    showGui

    userPanelWindow = guiCreateWindow(380,277,290,82,"Player Cash",false) Money_lab = guiCreateLabel(17,32,46,24,"Money :",false,playerMoneyLabel) guiLabelSetColor(Money_lab,0,255,0) playerMoneyLabel = guiCreateLabel(75,33,199,18,"\"\"",false,playerMoneyLabel) guiLabelSetColor(money_lab2,255,0,0) guiSetVisible ( userPanelWindow, false ) function onresourceStart () bindKey ("F7", "down", showUserPanelWindow) outputChatBox("Resource Cash System Started, Press F1 To open GUI.",0,255,0) outputChatBox("Author: Klesh",0,255,0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart ) function showUserPanelWindow() if (guiGetVisible (userPanelWindow)) == true then guiSetVisible (userPanelWindow, false) showCursor (false) else guiSetVisible (userPanelWindow, true) showCursor (true) local PlayerMoney = getPlayerMoney(getLocalPlayer()) guiSetText ( playerMoneyLabel, " [ " ..tostring(playerMoney).. " ]" ) end end If you take a look in the debugscript(debugscript 3) you will see that it says 'attempt to call global bindkey a (nil value)', that's because it's bindKey not bindkey, upper case at key.
×
×
  • Create New...