Jump to content

Wisam

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by Wisam

  1. Here, that should work try it function deletecc() for k, v in ipairs (getElementsByType("player")) do local name = getPlayerName(v) if (string.find(name,"#%x%x%x%x%x%x")) then local name = string.gsub(name,"#%x%x%x%x%x%x","") setPlayerName(v,name) cancelEvent() end end end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),deletecc) function removeCC(oldNick,newNickname) local name = getPlayerName(source) if newNickname then name = newNickname end if (string.find(name,"#%x%x%x%x%x%x")) then local name = string.gsub(name,"#%x%x%x%x%x%x","") setPlayerName(source,name) if (newNickname) then cancelEvent() end end end addEventHandler("onPlayerJoin",getRootElement(),removeCC) addEventHandler("onPlayerChangeNick",getRootElement(),removeCC)
  2. Holy shit i can't beleive this actually worked thanks alot dude
  3. I added those outputChatBox lines and they both got executed and there was no errors in the debug, tried with the onClientPlayerJoin event but its still the same, blackscreen. addEventHandler("onClientPlayerJoin", resourceRoot, function () outputChatBox( "okay, 1" ) setPlayerHudComponentVisible ("radar", false ) ped = createPed ( 73, -2239.3713378906,-1741.8660888672,480.82662963867, 485,true ) setPedAnimation( ped, "ped", "XPRESSscratch",nil,true,true,false,false) -- "ped", "XPRESSscratch" -- default "ped", endchat_01 guiSetInputMode("no_binds_when_editing") fadeCamera (true) setCameraMatrix(-2241.9584960938,-1743.4710693359,481.54472045898, 2659.0986328125, 2728.521484375, 10.774273872375) loginPanel() outputChatBox( "okay, 2" ) end )
  4. So i've been working on this login panel script its not mine but i added some stuff, everything is working fine but there is a little problem i faced.. at the bottom function, when i start the resource and join the game i am set to the view of the camera matrix i put in the script but the problem is when i reconnect again i can see black screen, i know its because the event is set to onClientResourceStart , but i tryed onClientPlayerJoin but it didn't work and i didn't even see the login panel when i connected.. so i want the players to see that camera matrix and the ped every time they connect. function finishlogin() config = xmlLoadFile("fragconf.xml") xmlNodeSetAttribute(config, "username",guiGetText(login_username)) xmlNodeSetAttribute(config, "pass",guiGetText(login_password)) xmlSaveFile(config) guiSetVisible(login_bg,false) guiSetVisible(login_window,false) showCursor(false) guiSetVisible(register_window,false) guiSetVisible(login_window2,false) end addEvent("onPlayerDoneLogin", true) addEventHandler("onPlayerDoneLogin", getRootElement(), finishlogin) addEventHandler("onClientResourceStart", resourceRoot, function () loginPanel() setPlayerHudComponentVisible ("radar", false ) ped = createPed ( 73, -2239.3713378906,-1741.8660888672,480.82662963867, 485,true ) setPedAnimation( ped, "ped", "XPRESSscratch",nil,true,true,false,false) -- "ped", "XPRESSscratch" -- default "ped", endchat_01 guiSetInputMode("no_binds_when_editing") fadeCamera (true) setCameraMatrix(-2241.9584960938,-1743.4710693359,481.54472045898, 2659.0986328125, 2728.521484375, 10.774273872375) end )
  5. Thats a great job right there keep going! Can you Please convert objects similar to these reailistic dead bodies, please i would be grateful http://i.imgur.com/hQqXPlI.jpg
  6. Hey, Does anyone know what is the ID of this red flare object i saw it in some DayZ servers:
  7. Wisam

    Custom Animation

    They recently added it? and when it got removed?
  8. I saw these pictures of a MTA dayz server and im curious to know what are they using for this custom animation.. i mean i know that there is such an animation in the default san andreas animations. About 2 years ago i saw some post saying that they will be creating a custom animation function in the MTA, so if these server had this then i think they made it.. if anyone knows the method of adding custom animations please reply here:
  9. holy fuckin shit i can't believe you're back :DDDDDD I was waiting for this moment, literally the best DayZ server i have ever played, joining now :3
  10. Use isPlayerInACL and dxDrawTextOnElement
  11. Wisam

    How to fix?

    just add the script between those (remove the @) [lua@][/lua]
  12. What version are you using of dayz? Try opening vehicles_table, get the x,y,z coordinates of the position you want to spawn the vehicle in and add it to the table
  13. Well, i didn't try the resource but i opened the code and the command is /mods idk why its not working with you, ask AFK
  14. Good job, nice script and very usefull.. but i don't think it can be used for DayZ because it contains lots of mods that replaces items and backpacks, i think when a new player joins the server and he sees that he's holding a random big item he'l think the server is bugged
  15. Hello everyone, im here to introduce you to the Plauge Arma: II DayZ mod server a very unique gamemode with loads of new features you have never seen in another dayz server on MTA i will mention some of them here Some of the features: ☣ Inventory: A completely new inventory interface that looks exactly like the one in Arma 2 dayz mod. 100% ☣ New set of weapons: Forget the basic mta and other dayz servers weapons, in "Plauge" you can find a loads of new weapons with different skins(e.p: M4A3 normal, M4A3 Camo skin) there are like 50 kinds of weapons. 95% ☣ Crafting: Crafting system where you can craft almost everything in the server, every available weapon can be crafted, you can also craft items like tents, tools, ammo, medicines, clothes . 95% ☣ Building system: And first time on dayz the feature everyone searched for the Building System, which is a feature lets you build your own base anywhere all over San Andreas by gathering building materials from shopping trees and iron mines, you can build wooden and iron walls, doors, tents, vaults with passcodes you can store your items in them, and the doors of the your base will open automatically for you and your group when you get close to it, and don't worry about blockers who will try to block the public areas like area 51, military bases, hospitals because there will be zones that will restrict building in them. 95% ☣ Bandit/Military Bots: There will be bots with weapons that will guard the military bases with good loot and bandits who will try to kill you and rob you on sight, this will make the game more challenging and the survival will be realistic. 55% ☣ Care package: The US military forces will be dropping care packages for survivors and troops, who is faster and stronger to get to it first? 10% ☣ Bandit Ship: You will notice a ship/boat thats owned by bandits(bots) will stop at various docks around SA to scavenge for food and useful items but who knows, the ship might be holding some items you are looking for? 5% ☣ New Map: And the most important thing in a DayZ gamemode, there will be a completely new map of san andreas, bigger, more realistic and unique, lots of abandoned military bases and survivors camps which got attacked by hordes of zombies but some of theme will be guarded by military forces or bandits, islands like military bases and small towns. 25% --------------------------------------------------------------------------- And thats not even everything, more and more will be coming you can check the progress here we will keep you tuned for anything new Special Thanks to: CiBeR and he's team
  16. Registering on the forum doesn't seem to work with me, i mean i made an account with my email but when it asked me to confirm it i checked my email and there was no confirmation email i tried to resend it and switched email but nothing worked, could you please help me?
  17. I can't find your server on the browser did you close it?
  18. This map replaces the orginial map of san andreas? if yes do you have a custom map for it (to replace in F11) And can you put more photos of citys and military bases?
  19. Hey guys I wanted to ask you guys if you know where i can get the dayz custom world map, i mean the gta san andreas map with custom objects, if you have a built custom map you're willing to sell i will be interested in buying if its worth it. Im looking for somthing similar to this:
  20. Well, i don't know what to say about this but YOU'RE A FUCKIN' SAINT this is probably the best thing a developer did in the history of mta i can't believe it you posted the whole thing decompiled, fixed of bugs and adding new things i could kiss you right now man. Thank you thank you alot for your effort and sharing this i will tell my friends about this just to click the shit out of your adf.ly links. I wanted to ask a few things bro could you help me? - How can i arrange a loot spawn points with a good loot, like im thinking of making custom military camps with loot points - Is it possible to edit the zombies attitude in slothbot resource so i can make them like, some zombies run and some of them just walk or make a specific kinds of zombies a littlebit stronger than the others like soldier zombies, and is it possible to make zombies spawn in a specific locations and specific zombie skins (example: zombie doctors in hospitals, soldier zombies in area 51 and military camps, civilian zombies in citys) - How to add extra kinds of weapons with modified damage
  21. If its very different from the basic DayZ gamemode, trust me LOTS of players would join and ill be the first one Tell me who is currently with you on the project, and i might also join in and help with somthing
  22. In my opinion its a great idea, im sure lots of people are sick of the current basic DayZ gamemode which there are like a millions of servers uses the same gamemode.. well creating a new one will be very successful but it must be very different from the basic DayZ gamemode.. like yeah add items, backpacks, vehicles like dayz.. but you could also add somthing new and can't be found in other dayz servers like: Add lots and lots of new items, upgradable weapons, building system that will let you craft construction material or chop wood and build wooden walls, fences, doors...etc, events such as civilian rescue mission or whatever(you can come up with another event later). I saw this interesting and i just thought about those things now, I don't know if you're even serious with this but i hope you are. and we could talk and discuss this here
  23. Wisam

    [REL] IVSE 1.3

    Dude i had this problem and i've been struglling to fix it but nothing worked, can you please post the fixed one? or Mr.gSub can you post the decompiled version? please i need this very badly
  24. Didn't work, i dont think thats the problem.. it saves everything included in the script expect the weapons
  25. Hey, here is a sqlite save system which saves the player's basic stuff such as position, dem, int, money, skin..etc and it works perfectly expect when i decided to add weapons save too cause i can't add the script to the server without it including weapons save.. well i've been struggling to sort it out but nothing worked so far, and i posted it here so please if you know anything that could help post here Thanks you in advance. Script: local isInSaveDB = {} local db = dbConnect("sqlite", "/playerstats.db") dbExec(db, "CREATE TABLE IF NOT EXISTS saving (account TEXT, model TEXT, x TEXT, y TEXT, z TEXT, Wanted TEXT, interior TEXT, dimension TEXT, team TEXT, rotation TEXT, money TEXT, Occupation TEXT, Weapon TEXT)") function convertWeaponsToJSON(player) local weaponSlots = 12 local weaponsTable = {} for slot=1, weaponSlots do local weapon = getPedWeapon( player, slot ) local ammo = getPedTotalAmmo( player, slot ) if (weapon > 0 and ammo > 0) then weaponsTable[weapon] = ammo end end return toJSON(weaponsTable) end function giveWeaponsFromJSON(player, weapons) if (weapons and weapons ~= "") then for weapon, ammo in pairs(fromJSON(weapons)) do if (weapon and ammo) then giveWeapon(player, tonumber(weapon), tonumber(ammo)) end end end end function loadData(query) local d = dbPoll(query, 0) if (not d) then return end for ind, data in ipairs(d) do isInSaveDB[data.account] = {data.model, data.x, data.y, data.z, data.Wanted, data.interior, data.dimension, data.team, data.rotation, data.money, data.Occupation, data.Weapon} end end dbQuery(loadData, db, "SELECT * FROM saving") function setData(plr) local account = getAccountName(getPlayerAccount(plr)) if (account ~= "guest") then local team = getPlayerTeam(plr) if (team) then team = getTeamName(team) end local weapons = convertWeaponsToJSON(plr) local model = getElementModel(plr) local Wanted = getElementData(plr,"Wanted") or 0 local money = getPlayerMoney(plr) local x, y, z = getElementPosition(plr) local rotation = getPedRotation(plr) local occupation = getElementData(plr, "Occupation") local interior, dimension = getElementInterior(plr), getElementDimension(plr) if (isInSaveDB[account]) then dbExec(db, "UPDATE saving SET model=?, x=?, y=?, z=?, Wanted=?, interior=?, dimension=?, team=?, rotation=?, money=?, Occupation=?, Weapon=? WHERE account=?", tostring(model), tostring(x), tostring(y), tostring(z), tostring(wanted), tostring(interior), tostring(dimension), tostring(team), tostring(rotation), tostring(money), tostring(occupation), tostring(account), tostring(weapons)) isInSaveDB[account] = {model, x, y, z, Wanted, interior, dimension, team, rotation, money, occupation, weapons} else dbExec(db, "INSERT INTO saving (account, model, x, y, z, Wanted, interior, dimension, team, rotation, money, Occupation, Weapon) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", tostring(account), tostring(model), tostring(x), tostring(y), tostring(z), tostring(wanted), tostring(interior), tostring(dimension), tostring(team), tostring(rotation), tostring(money), tostring(occupation), tostring(weapons)) isInSaveDB[account] = {model, x, y, z, Wanted, interior, dimension, team, rotation, money, occupation, weapons} end end end function executeData() local account = getAccountName(getPlayerAccount(source)) if (isInSaveDB[account] and account ~= "guest") then local model = isInSaveDB[account][1] local x, y, z = isInSaveDB[account][2], isInSaveDB[account][3], isInSaveDB[account][4] local Wanted = isInSaveDB[account][5] local interior = isInSaveDB[account][6] local dimension = isInSaveDB[account][7] local team = isInSaveDB[account][8] local rotation = isInSaveDB[account][9] local money = isInSaveDB[account][10] local Occupation = isInSaveDB[account][11] local weapons = isInSaveDB[account][12] giveWeaponsFromJSON(source, weapons) setPlayerMoney(source, tonumber(money)) setPlayerWantedLevel(source, Wanted) setPlayerTeam(source, team) spawnPlayer(source, x, y, z, rot, model, int, dim) setElementModel(source, model) setElementData(source, "Occupation", tostring(Occupation)) setCameraTarget(source, source) --[[ local city = exports.CRmisc:formatCity(source) if (lvBanned[source]) then if (city ~= "LV") then setElementPosition(source, 1606.26, 1845.99, 10.82) end outputChatBox("Your ban will expire in "..lvBanned[source][2].." days", source, 255, 255, 0, "default-bold", true, 0.1) end --]] end end addEventHandler("onPlayerLogin", root, executeData) function runDBSave() for ind, plr in pairs(getElementsByType("player")) do setData(plr) end end setTimer(runDBSave, 50, 0)
×
×
  • Create New...