-
Posts
266 -
Joined
-
Last visited
Everything posted by Ryancit2
-
Ok kar diya thank you.
-
Haan, maine poocha kyun k mujhay laga tum ne apni /jobname wali script ko apni first script bataya tha whereas you had one before, a nice one
-
I also meant to get you host, not 'you to give host' And yes, COMSATS can provide that facility but expensively, because that hosting is not for gaming but for other softwares, etc. but you can try that for gaming too, its very powerful.
-
Well, if you can somehow get PayPal or some other international online account, you can have a cheap host with that much slots, other than that, none in my mind. oh and you can try COMSATS VPS hosting, afaik that would work too but that's much expensive.
-
Yar 1 kaam karo, SQL seekho, its really really useful, then PHP+MTA SDK seekho, phir dekho tumhari scripts kaisi banti hain, MTA PHP SDK k through to hum world ki (almost) koi bhi cheeze game mein dekh saktay hain, except for videos, GIF images etc. Ye check karo meri scripts, which used PHP SDK: https://community.multitheftauto.com/index.php?p= ... s&id=11231 https://community.multitheftauto.com/index.php?p= ... s&id=10997 Inhain download kar k check karo, maine PHP tutorial bhi sath hi diya hai, its easy or btw, wo ig playtime counter tumhari nahi hai?
-
Robin tum pakistani roster main ho? agar nahi to wahan details de do main add kar doon ga.
-
Yar tum log daily to reply kar diya karo
-
hey MHS and Smart
-
Try this one: exports.scoreboard:addScoreboardColumn('Level') levelCache = {} function updateStats(plr) local acc = getPlayerAccount(plr) local accName = getAccountName(acc) local zKills = getAccountData(acc, "Zombie Kills") or 0 if zKills => 0 and zKills < 50 then setAccountData(acc, "Level", 1) elseif zKills => 50 and zKills < 150 then setAccountData(acc, "Level", 2) end local lvl = getAccountData(acc, "Level") or 1 if lvl > levelCache[accName] then outputChatBox(getPlayerName(plr).." leveled up from "..levelCache[accName].." to "..lvl) givePlayerMoney(plr, 2000) -- Give money on level up. end levelCache[accName] = lvl end function getAllPlayers() local players = getElementsByType("player") for k, v in pairs(players) do updateStats(v) end end setTimer(getAllPlayers, 5000, 0) Like JR10 said, you will need to update kills onClientKill or whatever event triggered on killing a zombie.
-
Add this in 'else' after line#20: triggerClientEvent(pPlayer, "drawDxText", pPlayer, exp, needexp)
-
On server.lua:line#23, i said change 'source' with player value whom the text should be sent, try this: triggerClientEvent(pPlayer, "drawDxText", pPlayer, exp, needexp)
-
In that long code its hard to point out such a trivial bug which isn't even a bug but is a flaw, i'll recheck the script again.
-
Its working fine for me, tell me how are you doing it? It'll show exp under the minimap.
-
Clearing the table won't hurt, perhaps a code provided would help us more efficiently to let you know better choice. Although, refreshing tables isn't really CPU-Consuming stuff unless it is related with hugeass database.
-
This will work now, tested code: text = "" function setText(xp, nxp) text = "Experience: ".. xp .. "/" .. nxp end addEvent("drawDxText", true) addEventHandler("drawDxText", root, setText) function renderText() if (#text > 0) then local sw, sh = guiGetScreenSize() dxDrawText (text, 50, sy-50) end end addEventHandler("onClientRender", root, renderText) Now trigger these functions by serverside via: triggerClientEvent(source, "drawDxText", source, experience, neededExp) -- Here, source is the specific player who will see text under radar.
-
Thank you very very much You are welcomed.
-
Can you show me /debugscript 3 output?
-
Thanks. I'm sorry f that sounds offended, i was just clearing difference between simple TTS and TTS-being used for a purpose.
-
That happens when marker is being made on Z+1 (axis height) and so, the marker with default size should start from ground but increasing size would also increase its height 'a bit' afaik that makes the event not trigger able because no one is able to touch the base of marker, which is attached with function to be called.
-
You can see that within resource archive, its not compiled + it contains PHP source file aswell, that will teach you what you exactly wanna know
-
It's still text-to-speech. Only difference is that you have specific messages read between specific players Okay i agree its text-to-speech, now what sir? Should i delete my resource or blame myself for actually making TTS useful with a new name of 'Voice Messaging"? Your call.
-
You mean you want to print player XP-Level under radar? Try this: dxDrawText
-
Looking for a multiplayer map editing server source code
Ryancit2 replied to a1057962851's topic in Scripting
You mean multiple players to map on same server? You can use MTA's default map editor and open you server's ports, then let your friends join server and make maps. -
I don't think that's possible by one pre-made function, though you can make a function manually, then disable heatseek rpg fire inside it and create a manual explosion via createProjectile right on the aimed target.
-
http://web.archive.org/web/201207060814 ... TextLength So yes, it would work fine.