Jump to content

TheRealCow

Members
  • Posts

    64
  • Joined

  • Last visited

Everything posted by TheRealCow

  1. hmm i made it to server side: -client: addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( player ) if (source == GUIEditor_Button[16]) then gMe = getLocalPlayer() local red = guiGetText ( GUIEditor_Edit[4] ) local green = guiGetText ( GUIEditor_Edit[5] ) local blue = guiGetText ( GUIEditor_Edit[6] ) triggerServerEvent ( "nametagcolor", gMe, red, green, blue ) end end ) -server: function nametagcolor ( player, red, green, blue ) setPlayerNametagColor ( player, tonumber(red), tonumber(green), tonumber(blue) ) end addEvent ( "nametagcolor", true ) addEventHandler ( "nametagcolor", getRootElement(), nametagcolor ) debug: Bad argument @ setPlayerNametagColor - line 2
  2. i was used /debugscript 3 ... hmm, when i do it in client side, then the other players dont see that ?
  3. addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( player ) if (source == GUIEditor_Button[16]) then player = getLocalPlayer() local red = guiGetText ( GUIEditor_Edit[4] ) local green = guiGetText ( GUIEditor_Edit[5] ) local blue = guiGetText ( GUIEditor_Edit[6] ) setPlayerNametagColor ( player, red, green, blue ) end end ) idk why, but the player nametag color wont change. no error in debug.
  4. agate1 = createObject ( 988, -1972.7886962891, 293.92767333984, 35.171875, 0, 0, 90 ) acol = createColCuboid ( -1975.0732373047, 290.97298681641, 35.171875, 5, 7, 3) function opena51gates(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then moveObject (agate1, 3000, -1972.7886962891, 303.92767333984, 35.171875 ) end end addEventHandler( "onColShapeHit", acol, opena51gates ) function closea51gates(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then moveObject (agate1, 3000, -1972.7886962891, 293.92767333984, 35.171875 ) end end addEventHandler( "onColShapeLeave", acol, closea51gates ) and first, look that : if ( getElementType ( elemen t) == "player" ) then
  5. function onStart () marker = createMarker ( 0, 0, 0, "cylinder", 2.5, 0, 0, 255, 150 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()) function entering ( source ) local money = getPlayerMoney( source ) if ( money >= 100 ) then setElementHealth ( source, 100 ) outputChatBox ( "Healthed", source, 0, 255, 0 ) else outputChatBox ( "You dont have enoguht money! ( 100$ )", source, 255, 0, 0 ) end end addEventHandler ( "onMarkerHit", marker, entering ) no tested..
  6. function createob () ob = createObject ( 2933, -221.83, 2629.10, 63.55, 0.0000, 0.0000, 0.0000) marker = createMarker ( 0, 0, 0, "cylinder", 5, 0, 0, 255, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource ()), createob ) function obCheck ( thePlayer, matchingDimension ) if hasObjectPermissionTo (thePlayer, "command.kick", false ) then moveObject ( ob, 3000, -221.83, 2629.10, 66.55) outputChatBox ( "Command Recived , opening Admin Base!", thePlayer, 0, 255, 0) end end addCommandHandler ( "open", obCheck ) addEventHandler ( "onMarkerHit", marker, obCheck ) function onPlrLeaveob ( thePlayer, matchingDimension ) if hasObjectPermissionTo (thePlayer, "command.kick", false ) then setTimer ( movingBackob, 1000, 1, thePlayer ) outputChatBox ( "Command Recived! Closing Admin Base!", thePlayer, 0, 255, 0 ) end end addCommandHandler ( "close", onPlrLeaveob) addEventHandler ( "onMarkerLeave", marker, onPlrLeaveob ) function movingBackob () moveObject ( ob, 3000, -221.83, 2629.10, 63.55 ) end
  7. triggerClientEvent(getRootElement(), "playMyMusic", getRootElement()) you are triggering event to local player.. triggerClientEvent("playMyMusic", getRootElement()) maybe lsomething like that ?
  8. function replaceModel() local skin = engineLoadTXD ( "skins/13.txd" ) engineImportTXD ( skin, 13 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
  9. kevin, setVehicleColor must added whit ID-s, not RGB
  10. function recourse_says_hai () explosions1 () end addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai ) function explosions1 () createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false ) createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false ) createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false ) createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false ) setTimer ( explosions1, 3000, 3 ) createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 ) end
  11. 1. No idea where this topic should go but enyway.. we was maked one farm day.. i was builded an a trailer, for tractor, where u can transport things We was drived from LS to SF and then for SF to LS back because, then the storie begin.. The Storie: We was come from SF to the mR|Joosep farm, there we was in the forest ( was it the much tress and else.. ) and we make some trees to him.. then we goes to mine farm ( mR|TurboCow ) and got the same balls or something..and bring they to the one house, where are they already much.. and that was the end of the day.. we was tired, and bring the tractor and trailer back to the farm. and goes to sleep. and ofcourse! i maked some pics, so u can look they http://album.ee/node/23088495/50237093 PS! The page is on estonia languaeg, but there not hard to put "->" and "<-" buttons , near the pic so, u can see they
  12. dak, we was too that proble, we reregister
  13. thats true, download script and look how they are made it
  14. DarkDragon! The best Of Ever! U are realy know what is art!
  15. maybe are you functions names same ? so he can trigger the events or something ?
  16. just look to mtabeta.com... there are those scripts. But not the named like teamsave. its ON the gamemode...
  17. TheRealCow

    Image

    i mean,hmm like a picture to wall, not retexture.. like is some handler like createStaticImage or something ?
×
×
  • Create New...