Jump to content

NodZen_42

Members
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

0 Neutral

About NodZen_42

  • Rank
    Square

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Bueno, Yo también hablo castellano, soy de Argentina. Voy a probar el script que me diste, y te aviso si funciona. 

  2. Hello guys, i need help with this. The idea is to create a dxDrawimage according to the zombie kills of the player, but it does not work. exports.scoreboard:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted",root, function (killer) givePlayerMoney(killer,50) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) local account = getPlayerAccount(killer) if isGuestAccount(account) then return end local zombieKills = getAccountData(account,"Zombie kills") if not zombieKills then setAccountDat
  3. Can I talk to you by private message?
  4. Hi guys. I have a doubt. I want to make a script in which according to the "zombie kills" an image is created on the screen of that player. Now, to get the account information I need to use "getAccountData" and "getPlayerAccount", but these functions are only "server side", while "dxDrawImage" is a client and I also have to use "onClientRender". The question is .. How can I make this script?
  5. Hi guys, i need help with my script. The idea is to create a dxDrawimage depending of the skin of the player local screenW, screenH = guiGetScreenSize() function crear_image_team () local get_P_Model = getElementModel(getLocalPlayer()) if get_P_Model == 287 then militares = dxDrawImage(screenW-280, screenH-100, 20, 20, "Factions/Militares.png",0.0,0.0,0.0,tocolor(255,255,255,200)) outputChatBox("se te asigno un escudo militares", source, 255,255,255) elseif get_P_Model == 29 or get_P_Model == 73 or get_P_Model == 79 then bandidos = dxDrawImage(screenW-280, screenH-100
  6. I don't understand. That would be all the script? or just a part?
  7. Hi guys, i need help with script. The idea is if the player is "mercenarios" then create a image in the screen of that player. But, my script doesn't work. Any help? function isPlayerInTeam(player, team) assert(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]") assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"), "Bad argument 2 @ isPlayerInTeam [nil/string/team expected, got " .. tostring(team) .. "]") return getPlayerTeam(player) == (type
  8. Hi guys, i need your help with my script. function setear_humanos () local GET_TEAM_HUMANOS = isPlayerInTeam(source, "Humanos") if GET_TEAM_HUMANOS then setElementModel(source, skins_humanos[math.random(#skins_humanos)][1]) outputChatBox("Ahora eres humano", source, 0,200,0) end end addEventHandler("onPlayerSpawn",root, setear_humanos) The error is "attempt to call global" in the isPlayerInTeam function
  9. Hola Chicos, estoy aprendiendo esto del scripting y bueno, tengo este error con mi script function setear_humanos () local GET_TEAM_HUMANOS = isPlayerInTeam(source, "Humanos") if GET_TEAM_HUMANOS then setElementModel(source, skins_humanos[math.random(#skins_humanos)][1]) outputChatBox("Ahora eres humano", source, 0,200,0) end end addEventHandler("onPlayerSpawn", root, setear_humanos) Alguna ayuda?
  10. The script doesn't work. The console says : Bad argument @ 'getTeamFromName' [Expected string at argument 1, got table]
  11. something like this? local equipos = {"Zombies", "Humanos" } function crear_equipos () createTeam ("Zombies", 255,0,0) createTeam("Humanos", 0, 200,0) end addEventHandler("onResourceStart", getRootElement(), crear_equipos) function setear_equipos () local check_team = getTeamFromName("Zombies") if check_team then setPlayerTeam(source, check_team) else local check_team2 = getTeamFromName("Humanos") if check_team2 then setPlayerTeam(source, check_team2) end end end addEventHandler("onPlayerSpawn", root, setear_equipos)
×
×
  • Create New...