Jump to content

bandi94

Members
  • Posts

    1,037
  • Joined

  • Last visited

Everything posted by bandi94

  1. i think its time to learn something bk if the map is timelimited respawn if you kill all player's they will respawn again so for this you need to make all maps non respawn and you need to edit the race script , after a player die normaly you don't spawn again and you edit the race script in that way, after a player died he get respawned for 3 time's
  2. i have my autoteam you can find it on community and the team's are stored in tabel in the lua and now i wanna tup it on xml and yes i wanna use driver2's xml load part bk i don't have exp whit xml how you can see i make a script and that is only a part of it i include an invitation system and many more if you wanna i can send it on pm to don't say i steal bk i only documented and I imitated driver2' script so you can help me or not ? EDIT: thx for the "noob don't steal" but i made it to work
  3. i don't use so much xml and i got a problem i am making an autoteam and i wanna make ti to i can add team's in game and here is my problem my xml file <teams > </teams> function addpermteam(name,tag,color,acc) if name~="" and tag~="" and color~="" and acc~="" and getAccount(acc) then local msg local xml= xmlLoadFile("teams.xml") local NewNode = xmlCreateChild(xml, "team") xmlNodeSetAttribute( NewNode, "name",name) xmlNodeSetAttribute( NewNode, "tag",tag) xmlNodeSetAttribute( NewNode, "color",color) xmlSaveFile(xml) xmlUnloadFile(xml) end end and my xml file after i add a team in game <teams> <team name="as" tag="as" color="as"></team> </teams> but here is the problem i need to the xml file look like this how can i do this thx a lot for helping <teams> <team name="as" tag="as" color="as"/> </teams>
  4. i load the xml file onClientResourceStart when player is playing i edit the data's..... and my question is can i save the xml onClientResourceStop or is to late?
  5. no i use only the MTA account function setAccountData ......
  6. about 1 month ago my server crash in every 15 min in the final it was my database so my server got a new one (account's and toptimes got deleted) and worked fine until now. Now again start whit crash'es i think is again the database can the database whit a lot of account's crash the server i mean if the account's can bug the database i have 1000 account's on the server + toptimes thx for helping
  7. bandi94

    Problem

    1. you got error on line 34 at dxText ! the script what you post have only 29 line ..... post the full code or the right debug error
  8. bandi94

    buymap

    whit your script when a player leave the server he will lost his money i don't think player's will lake that every time to get 0$ when join to the server use AccountData
  9. yes and what to do whit this ? post the error(s) or what is the problem ....
  10. division is "/" you make a big s**** whit 150*x the x of scrren is 1024*150 i don't think you have 153600 pixels on your screen you have only (1024 or littel more but 100% sure not 153600) use x/2 y/2 this will draw the text in the midel of screen use another numbers in place of 2 to draw it where you want
  11. add GTA Material to your model in 3D's max and after in the TXD the "picture" name need to be the same ass the "picture" what was used on GTA Material
  12. use getPlayerAccount setAccountData getAccountData now the script is using setElementData you need to replace it whit the account function's
  13. bandi94

    skin mods?

    engineLoadDFF() engineReplaceModel() engineLoadTXD ( ) engineImportTXD ( )
  14. 1. like hydra have ex. when i press ctrl then check if on my screen i see a player and if yes then return the player (like hydra if you press the button and you see a player on the screen it create that green circle ) 2. like hydra have that green/red circle folow the player now i need to get the vehicle location as screen x,y to can use dxDrawImage to make that circle to folow the player's vehicle EDIT: ok i solved problem 1 isElementOnScreen
  15. i am going make a custom heat seeking rocket like hidra have now i search on wiki but i don't find this 2 function's: - when a button is presed to check if i see on the screen a player(vehicle) and if yes then get that player or the player name - how to get that player(vehicle) position and transform it in x,y 2D scale (i mean like hidra have that green/red circle that follow the vehicle ) thx
  16. As far as I know you can't change CJ's skin and that is the problem of your bug (you change it )
  17. ok i make how you say now my problem is that it draw only on 1 side here : http://imageshack.us/photo/my-images/9/46649773.png/ http://imageshack.us/photo/my-images/405/20411138.png/ Edit: Thx for helping it was my foult i forgot to draw the material to the object i draw it and now it's working fine thx a lot for helping
  18. i used 2 object's the vgncarshade1.dff and i attached to it the VGN.3ds object so i named the photo in .txd : VGN but nothing again only white
  19. like i say i am not pro in this and i need somebody who can expline me how can i do that my attached element get the photo texture from txd ....
  20. OMG not the code is wrong the dff and txd is ..... bk when i load the custom object the vgncarshade get colored only my attached object not .... dff = engineLoadDFF("proba.dff",0) engineReplaceModel(dff, 3458) engineReplaceModel(dff, 8838) engineReplaceModel(dff, 8557) txd = engineLoadTXD ( "vgncarshade1.txd" ) engineImportTXD ( txd, 3458) engineImportTXD ( txd, 8838) engineImportTXD ( txd, 8557) EDIT HERE 3 photo's : http://imageshack.us/photo/my-images/210/66862793.png/ http://imageshack.us/photo/my-images/38/54159401.png/ http://imageshack.us/photo/my-images/811/83351146.png/
  21. i make a custom object in googel sktechup i attached it to vgncarshade in 3D's max i save it (.ddf) i open the txd wrokshop i add a image imported the picture for my custom object and i name it like the Material name in 3D's max but my objet is stil white the vgncarshade is good buy my attahed object is white somebody can explain me how to add the txd photo for my attached object thx
  22. bandi94

    AMX

    peaople encrypt files for prevent stealing maybe you find and decomplier but it will not be 100% reversed
  23. yes i know that topic but i don't get how the tabel.sort work for that i need some help for my script to expline how that function work ..
  24. ok i need a tabel whit first 22 account's ( Top 22 in ascending order by points) whit table.sort i think but i don't know how to make it for now i have this : Top={} accounts=getAccounts() for i,v in pairs(accounts) do Top[i]={ account=v, point=getAccountData(v,"points"),} end how can i sort then in ascending order ( i need the first 22 only i don't need all account's in the sorted table only the first 22 whit most points Top 22 ) thx
×
×
  • Create New...