Jump to content

Grievous

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Grievous

  • Rank
    Square
  1. I have a 1.0 server running on my home pc (Windows Vista) that I want to upload to a host running Linux. Do I need to compile it and add files? If so where do I get those files and how do I know what files I need? Any help is appreciated. Thanks
  2. I tried using jpg instead of png for a gui image. When I try the gui doesn't load. Do I need to do something different for jpgs? picture = guiCreateStaticImage( 0.8, 0.55, 0.15, 0.4, "skins/Skinid109.jpg", true, gamemm ) guiSetVisible( picture, true) This is in my meta.xml <file src="skins/Skinid109.jpg" /> It works fine as long as I use png files. Do jpg's not work in gui? I've seen them used elsewhere. Any help would be greatly apperciated.
  3. I made some changes to the client side. function greetingHandler ( message ) outputChatBox ( "The server says: " .. message ) end addEvent( "OnClientResourceStart", true ) addEvent( "onGreeting", true ) addEventHandler( "OnClientResourceStart", getRootElement(), greetingHandler ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) I'm not sure how to call this from the server side. Or do I even need to? This is what I have for server side. function onJoin() outputChatBox ( "Welcome") triggerClientEvent ( source, "onGreeting", getRootElem
  4. I'm not sure what data I should be passing to the client. I'm trying to make the spawn window to show only to theplayer when theplayer joins. I think I need add support to show the spawn window only to theplayer when theplayer is dead. I have this server side function onJoin() outputChatBox ( "welcome message.", source ) triggerClientEvent ( thePlayer, "onGreeting", getRootElement()---what goes here?---) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin ) and this client side function greetingHandler ( message ) outputChatBox ( "The ser
  5. Hi, I have a spawn window that shows itself to all players when new players connect. It doesn't happen everytime. I heard the answer was server side. Has anyone had this problem before? Any idea would be most welcome. I'm stuck and its very annoying. Thanks
  6. problem solved it was in the playerwasted. Thanks
  7. The player blips still stay when players leave. New player that join don't see the blips from players that left before they arrived. There is also 1 blip at the farm near los santos that even stays after pc reboot. Am I doing this in function destroyBlipsAttachedTo? I added the function blipDestroy. So now I have this after team creation and before the money drop. function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then
  8. Hi, I finally got the player blips working on my server. However when I'm in the server some of the player blips stay on the map and radar after the player has disconnected. They don't allways stay and when I reconnect they are gone. 1st thing regarding blips in my script is right after the teams creation. function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end
  9. Grievous

    money drop

    I have this money drop script I found somewhere. It works fine except it stops my pickups from respawning. My pickups are all in a map file and the script is in my gamemode. Here is the script. I have it between my teams list and spawns. Any help would be greatly appreciated. function createMoney(mx,my,mz,level) local x1=(mx-2)+(math.random()*4) local y1=(my-2)+(math.random()*4) local x2=(mx-2)+(math.random()*4) local y2=(my-2)+(math.random()*4) local moneyamount=math.floor(200*level^0.2) setElementData(createPickup(x1,y1,mz,3,1212),"amount",moneyamount)
  10. I'm no expert but if you edit your "mtaserver" file in your deathmatch folder and look for this 1 you need to set this udp port. It might tell you when the server boots up or you could try typing ipcomfig/all from a command prompt window in accessories. Or look in network settings You don't need a router, that just complicates things.
  11. Only the gamemode would be the same. Different city, gangs,ect. There are things I don't like on that server that would be different on mine. I have only found 2 servers like freestateproject, none on the west coast. I think there is room for the type of server I want to create. For those who don't know of this server. You basicly choose one of several teams, each with it's own weapons. You then have free roam of the city to kill other players. You can't spawn anything. You buy weapons at places on the map.
  12. ... I created this map file to spawn a car in the police parking garage but it didn't create the car. I have it in a folder under resoucres along with a meta.xml and a script.lua file function joinHandler() local x = 1580.55 local y = -1634.46 local z = 14 spawnPlayer(source, x, y, z) setPlayerSkin(playerSource, 280) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) I get CJ but no car
  13. I'm trying to create cars that spawn on the map. What lua file do I put the command in? How do I call up that command so the cars will spawn? I'm really lost on this, I have a basic server and have admin access but I don't know what to do next to have cars spawn. I think maybe I need to make a map file with the cars in it and load it as part of a resource. Is this right? Please help. Grievous
×
×
  • Create New...