bandi94
Members-
Posts
1,037 -
Joined
-
Last visited
Everything posted by bandi94
-
i made this on my server to can get the player name from accoun't for a top list you just save on account data the player name on join and on nick change like setAccountData(account,"Name",getPlayerName(player)) --and done
-
i started expand a litel the shop and i wanna make hidra folow missel to hunter now i search on wiki i think about but i don't figured out how can i do that green circle when you aim whit hidra apear that green circle that folow the traget vehicle now i am stuck i don't know how to transform 3D position to 2D i mean the getElementPosition return x,y,z and i need the screen x,y 2D to can use dxDrawImage so if somebody do this already or know's some idea how to do this ? THX a lot !
-
the color's are "math.random" you can cheange them whit r,g,b variable and then from comand handler you give them ex: /fw 255 0 150 .....
-
yes i got it i forgot to delet the old table i am trying to make a Happy New Year Rocket Show in that table are stored the rocket position's and on the Time thable when thay need to get created
-
i don't post them bk they are don't have any influence on my error but to make you happy here is Raketa={ {4621.299,-1879.550,7.09}, {4642.919,-1879.550,7.09}, {4707.779,-1879.550,7.09}, {4729.399,-1879.550,7.09}, {4751.019,-1879.550,7.09}, {4772.639,-1879.550,7.09}, {4794.259,-1879.550,7.09}, {4815.879,-1879.550,7.09}, {4837.499,-1879.550,7.09}, {4632.309,-1854.029,7.09}, {4653.929,-1854.029,7.09}, {4675.549,-1854.029,7.09}, {4697.169,-1854.029,7.09}, {4718.789,-1854.029,7.09}, {4740.409,-1854.029,7.09}, {4762.029,-1854.029,7.09}, {4783.649,-1854.029,7.09}, {4649.700,-1864.699,7.09}, {4649.700,-1868.699,7.09}, {4653.700,-1866.699,7.09}, {4657.700,-1864.699,7.09}, {4657.700,-1868.699,7.09}, {4671.290,-1864.699,7.09}, {4671.290,-1868.699,7.09}, {4675.290,-1866.699,7.09}, {4679.290,-1867.699,7.09}, {4679.290,-1868.699,7.09}, {4692.880,-1867.699,7.09}, {4692.880,-1868.699,7.09}, {4696.880,-1866.699,70.9}, {4700.880,-1867.699,7.09}, {4700.880,-1868.699,7.09}, {4714.470,-1867.699,7.09}, {4714.470,-1868.699,7.09}, {4718.470,-1866.699,7.09}, {4722.470,-1867.699,7.09}, {4722.470,-1868.699,7.09}, {4736.060,-1867.699,7.09}, {4736.060,-1868.699,7.09}, {4740.060,-1866.699,7.09}, {4744.060,-1867.699,7.09}, {4744.060,-1868.699,7.09} } time=0 Raketa={28,29,30,31,32 } Time={1,1,1,1,1} function show() time=time+1 local x local y local z for i,v in pairs (Time) do if v==time then x,y,z=unpack(Raketa[i]) letrehoz(x,y,z) end end end
-
"Mefisto_PL" what are you trying to say ?
-
i get stuck at this table and i don't know what is the problem i have a table i don't post the full tabel bk it have 42 position's and i get "bad argument #1 to unpack (table expected, got number ) " hm.... ? thx for helping Raketa={ {4621.299,-1879.550,7.09}, {4642.919,-1879.550,7.09}, {4707.779,-1879.550,7.09}, {4729.399,-1879.550,7.09}, {4751.019,-1879.550,7.09} } for i,v in pairs (Time) do if v==time then x,y,z=unpack(Raketa[i])
-
yes the skin can be buyed on the server shop system
-
ok for Christmas i make a Santa skin (players can buy it ) but player's who buy it on every 30 min or less MTA crash can i fix it somehow or is again MTA Engine ....... (i am whit this Engine i think it need a better one )
-
very NICE you will release it uptil dec.31? i wanna use this on my server GREAT JOB
-
CapY pls shut up whit your noob website if your webis don't have the database is your problem i don't use any database I am not intrest by your noob website i know C++ ( the haredest scripting language) and your noob website use C++ algorit to so shut up if you don't know what is a c++ algoritm about md5 when you convert a string (128 bit) the computer divide it to a 32 bit string and you got the md5 if you know what is an alogritm an C++( but i think you need to grow litel bk this is not work for "kid's" ) you can convert the 32 bit string back to 128 bit string and about your P.S. i don't need your noob website bk that use C++ algoritm what i know already
-
Capy you was an selfish from begin and you will continue to be a selfish that usser asked for help if you don't wanna help it go and STFU and don't post you don't need a "Super Computer" only a littel knowledge of C++ and how computer use 128 bit division to 64 bit or 32 bit Give me your password in pm (md5 format) and i will say your pw in less that 15s
-
function asd(player) ......... end function timer() setTimer(asd,1000,1,source) end addEventHandler("onPlayerSpawn",getRootElement(),timer)
-
1. save on Account but then the player need to log in and after you can get the info from account use this if the player need to log in to can see the window 2. save in xml file and then when player join to the server you can get the info from the xml use this is the player don't need to log in to see the window
-
Solved whit Collision File Editor 2 i open the col file i revres the face's save it and work's finaly
-
hello all. i am making a christams map whit a snowman and another objects i make it in googelschetcup Pro8 exported as 3ds imported in 3d's max maked the dff whit "skip COL" selected after i open Collision IO -> Collision Mesh selected the object top of Export i write the name what apear on Collision Mesh after i selected my object Export Col ... after i replaced the object dff and Col fie but its not working i can go tru the object it don't crash( it has no collision) i tried to add the Col file to the dff and exporte it (i don't selected the "skip COL") and stil the same problem can somebody explain me how to make and load in the game a collision file for my object thx a lot i use engineLoadCOL ( ) engineReplaceCOL ( )
-
label1 = guiCreateLabel(1240,585,125,17,"Health :",false) guiLabelSetColor(label1,255,255,0) guiSetFont(label1,"clear-normal") function hp () if getLocalPlayer()==source then local name = getPlayerName(getLocalPlayer()) local team = getPlayerTeam ( source ) team=getTeamName(team) local dm = getElementHealth ( getLocalPlayer() ) guiSetText ( label1,"Your name: "..name.." Your Team: "..team.." Your Health: "..dm ) setTimer ( hp, 2000, 1) end end addEventHandler ( "onClientPlayerSpawn", getRootElement(), hp )
-
local PoliceMarker = createMarker ( 95.099998474121, 1924.8000488281, 17.10000038147, 'cylinder', 1.8, 0, 100, 255, 150 ) PoliceGui = guiCreateWindow(227,106,342,376,"Police job",false) Have_Job1 = guiCreateButton(39,313,111,45,"Have job!",false,PoliceGui) Cancel1 = guiCreateButton(200,312,111,45,"Cancel",false,PoliceGui) Doel1 = guiCreateMemo(63,44,234,242,"Police Job:\nAs police you will have a hourly payment. Further objectves comming soon!",false,PoliceGui) guiMemoSetReadOnly( Doel1,true ) guiSetVisible(PoliceGui, false) addEventHandler("onClientMarkerHit", PoliceMarker, function(hitElement) if hitElement == getLocalPlayer ( ) then if (guiGetVisible(PoliceGui) == false) then guiSetVisible(PoliceGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("The police doesn't want you. Please re-enter the marker.") end end end)
-
......... from your words I understand that you asking if i steal that script (i know if somebody see another script part they jump stealer.....) forgive me if you have asked that in another intentions or i misunderstood you EDIT: omg what a noob i am how i say i have 2 team groups and on nick change i caled booth check permanent and temprary and the permanent set my team and after it very fast the temoprary set it nil bk |DGT| clan dosen't exist on temporary team ...
-
i had made an autoteam (you can find it on community) now i had a littel time and i decided do make an another more efficient whit invitations and in game team creating now i have 2 time if team's permanent saved on xml and temporary saved in tabel until are players in team after all player's left teh team the team get deleted now the temorary team work fine and here come's the problem where i am confused is the same code as on temporary team but it is not working xml <teams> <team name="asd" tag="%|DGT%|" color="#00ffff"></team> </teams> Loading of xml in tables working fine function LoadTeams () local xml= xmlLoadFile("teams.xml") local teamnodes=xmlNodeGetChildren(xml) for i,node in pairs(teamnodes) do local attributes = xmlNodeGetAttributes(node) Name[i]=attributes.name Tag[i]=attributes.tag Color[i]= attributes.color end xmlUnloadFile(xml) for i,v in pairs(Name) do outputChatBox(i.." : "..Name[i]) end end addEventHandler("onResourceStart",resourceRoot,LoadTeams) checking permanent team not working but here is the problem it outputChatBox all my checking :searching,found,createing team,seting team so are no error's in code but the team is not created and the team is not setted for player it is the same code as for temporary team's the singel ifference is that it's not chek the account and the team name tag color is saved in Tabel (in game whit a guiPanel) not in xml like permanent team's so what is wrong ? i know that driver2's autoteam its not working and he use same tehnick storage xml so its something whit createTeam and xml ? thx for helping function checkperm (player) setPlayerTeam(player,nil) if not isGuestAccount(getPlayerAccount(player)) then local team = getAccountData(getPlayerAccount(player),"team") outputChatBox("searching") for i,v in pairs(Tag) do if string.find(getPlayerName(player),v) then if team==v or team=="vezer"..v or team=="mod"..v then outputChatBox("found") if not getTeamFromName(Name[i]) then createTeam(Name[i],getColorFromString(Color[i])) outputChatBox("Creating team") end setPlayerTeam(player,getTeamFromName(Name[i])) outputChatBox("setting team ") end end end end
-
ex local abc = 0 "=" mean that i add a value for variable abc if(a==b) "==" mean that a is equal whit b if(a~=b) "~=" mean you chek if a is not equal whit b
-
1. make all maps none respawn 2. get spawnpoints location and vehicle model and skin model from .map file 3. after a player died respawn it using x,y,z and vehicle .skin model from .map info what i say on point 2 4. use setElementData to set the time's he get respawned if is 3 then cancel the respawn on point 3
