-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
I don't have 2 hours EDIT: haha I think I just discovered how to do this
-
Yes, it doesn't work as I want. I want to make this like a gamemode; when a map (that has these EDF elements created) starts, the elements are created too. Think in this like race gamemode; when the map with definitions starts, its defined elements gets created
-
Twitter, 'cause is used the "@USERNAME" . Check out eXo Clan server; they use different-coloured pickups.
-
Like in my ZA resource. Well, this isn't any requesting forum. You should check out my resource scripts. I know these are made by server-side texts, but you can get an idea of how to use it. You should use: guiCreateLabel onZombieWasted --> triggerClientEvent --> guiSetText AT LEAST try it, using your brain and the wiki. Then, use /debugscript 3 and if something doesn't work, show us your code PS: We are a HELPING forum, NOT REQUEST forum
-
I guess he wants to get the 2 players that have played more hours than others.
-
@LoooP: just replace the TXD replacement files by your own. @varez: He wants to make the race pickups only gold, like a golden pickup. Do u understand now? PS: Is this Twitter?
-
eAi said the same thing I see you didnt understand my code function. My objetive is to create PEDs from the editor. And create locked cars from the editor too. So anybody can use less time MAPPING them than scripting all that
-
LooooP from FFS Racing He is trying to modify Race pickups' colors (textures). You should show us your code, so we can get your error .
-
Thank you for reveal it
-
Well, I'm doing a public script (again ) and I want to make a editor "extension". The objetive is to create specific elements from the editor. In this case, locked vehicles and PEDs. MTA Map Editor recognizes my EDF, and creates elements when using it. But when I try to test it (F5), no elements are created in the map Well, this is my LUA coding: addEvent ("onGamemodeMapStart",true) addEventHandler ("onGamemodeMapStart",getRootElement(), function () local thePeds = getElementsByType ("custom_ped") local lockedCars = getElementsByType ("locked_vehicle") for i,thePed in ipairs (thePeds) do local skin = getElementData (thePed,"model") local x,y,z = getElementPosition (thePed) local r = getElementData (thePed,"rotation") local animBlock = getElementData (thePed,"animBlock") local anim = getElementData (thePed,"animation") local int = getElementData (thePed,"rotation") ped = createPed (skin,x,y,z) setPedRotation (ped,r) setPedAnimation (ped,animBlock,anim) setElementInterior (ped,int) end for i,theVehicle in ipairs (lockedVehicles) do local model = getElementData (theVehicle,"model") local x,y,z = getElementPosition (theVehicle) local rx,ry,rz = getElementData (theVehicle,"rotation") vehicle = createVehicle (model,x,y,z) setVehicleLocked (vehicle,true) setVehicleRotation (vehicle,rx,ry,rz) end end) My EDF: <def name="Extras"> <element name="custom_ped" friendlyname="PED"> <data name="position" type="coord3d" default="0,0,0" /> <data name="skinID" type="skinID" default="49" /> <data name="interior" type="integer" default="0" /> <data name="animblock" type="string" default="nil" /> <data name="animation" type="string" default="nil" /> <ped position="!position!" model="skinID" interior="!interior!" /> </element> <element name="locked_vehicle" friendlyname="Locked Vehicle"> <data name="position" type="coord3d" default="0,0,0" /> <data name="rotation" type="coord3d" default="0,0,0" /> <data name="model" type="vehicleID" default="405" /> <data name="interior" type="integer" default="0" /> <vehicle model="!model!" position="!position!" rotation="!rotation!" interior="!interior!" /> </element> </def> EDIT: I use mapmanager events. And it is running!
-
Do u want Basemode Beta 0.3? Please use AjaxTrans to translate your request!
-
Silent Hill: Lost Diaries is a server project based in to copy Silent Hill series style, and do a new Silent Hill-style story. With another words, SH: LD is a GTA SuperMod that can be played via online, with another players, but keeping fresh the Silent Hill Single-Player style. 1. Texture maker. 2. 3D Modeler. 3. Ideas for the server. 1. Our own RPG-Based Login GUI. 2. A character customizing GUI, so players can choose its favorite sport, its job, and its favorite color (everything has utility in our server). 3. GTA-based Cutscenes, made with DirectX Drawing. 4. Own HUD. 5. Single-player style 6. And a Silent Hill-based Map. © Silent Hill and Silent Hill logo are trademarks of Konami. Most of the media we took is from Silent Hill games. PS: We haven't any money way to pay you (if you help us). We will give you authority powers and credits in the server. Obviously, if you don't want to help us 'cause the reward isn't good enough, don't do.
-
varez: LOL x999,999,999,999,999,999,999! And I vote 3rd.
-
I'm sure it will change a bit the playerbase. 'cause some actual servers are TOO USUAL. For example, "Gamenet 100% Zombie Mod", is a good server. But is getting a bit bored; all time, the same thing... If there are new servers made by new scripters, with good ideas and made by theirselves? What about that? Isn't just they work a lot his brains only to get 0 players 'cause his position in the list. This randomized way is good to "at least" give an opportunity to new servers, and beat old and bad servers, if new ones are better! And I have a complementary suggestion for this: make a "critics system" (or voting system); players vote 1-5 on each server (if they want), then it will make players know which are good servers (by another players' opinion).
-
@varez + Taalasma: Please, if you have to discuss, don't do here, do it by PMs, please. As well, I vote for a randomized server list.
-
... Not bad idea I will use it. TY varez! TY so much! PS: hahaha I never write "Varez"
-
I'm making a Clothes Selector for RPG servers. I will add it to the community resources when it's ended But now I need some help. Well, I'm trying to delete all gridlist's rows, then adding new ones. The problem is that it just delete SOME rows. Why it doesn't delete all? Here are the lines: headClothes = {{"Default","player_face","head","1"},{"Bald","bald","head","1"},{"Bald and Beard","baldbeard","head","1"},{"Bald and Moustache","baldtash","head","1"},{"Bald and Goatee","baldgoatee","head","1"},{"Wedge","wedge","wedge","1"},{"Slope Hair","slope","slope","1"},{"Curly","jhericurl","jheri","1"},{"Groove Cut","groovecut","groovecut","1"}} headGrid = guiCreateGridList(0.0466,0.0764,0.9067,0.8917,true,headWindow) guiGridListAddColumn(headGrid,"Name",0.6) guiGridListAddColumn(headGrid,"ID 1",0.2) guiGridListAddColumn(headGrid,"ID 2",0.2) guiGridListAddColumn(headGrid,"ID 3",0.2) for i = 0, guiGridListGetRowCount(headGrid) do guiGridListRemoveRow (headGrid,i) end end if source == head then for i,v in ipairs (headClothes) do local row = guiGridListAddRow (headGrid) guiGridListSetItemText (headGrid,row,1,v[1],false,false) guiGridListSetItemText (headGrid,row,2,v[2],false,false) guiGridListSetItemText (headGrid,row,3,v[3],false,false) guiGridListSetItemText (headGrid,row,4,v[4],false,false) end PS: I can post whole script, but may be a too lazy way for you. PS2: If you want to help me with this script to make it more efficient, post it
-
Difference between setElementModel and setPedSkin, why to use setElementModel? Isn't the same thing anyway?
-
Is easy. Use this: local skinSelect = math.random(0,2) if skinSelect == 0 then skin = 56 elseif skinSelect == 1 then skin = 58 elseif skinSelect == 2 then skin = 60 end setPedSkin (ped,skin)--USE A PED ELEMENT!
-
Nice for new people. LOL "NOOB-friendly..."! Good job
-
Yeah... That's true LOL. Thanks for the lines, I will use them on my resource
-
Then every server may have to script its own... And may be too much work. Just all server having the same is enough
-
But too much lines. Is easier to use (client-side): addEventHandler ( "onClientPreRender", getRootElement(), function ( ) setCameraTarget( getLocalPlayer( ) ) end ) It does the same thing (just has problems trying to using mouse to up or down), in less lines.