Jump to content

12p

Members
  • Posts

    2,608
  • Joined

  • Last visited

Everything posted by 12p

  1. Sorry this reply but, if you set the player's camera target as itself, it doesn't delete old camera matrices configurations?
  2. 12p

    Computer

    1. What is your script related to? You didn't give any idea of that. 2. If you want scripters, you should offer something. Otherwise, you will have to learn LUA and script by yourself.
  3. ( getPlayerName(thegangster) .. " is the Gangster.", theGangster ) If you want to make only a player read the chatbox message, add a player element after the message (in this case, theGangster).
  4. Check out this resource I made for that you want: https://community.multitheftauto.com/index.php?p= ... ls&id=1129
  5. Yeah, setTeamFriendlyFire works fine for me too.
  6. In every RESOURCE folder, the "meta.xml" must appear. Are you sure it doesn't appear, for example, in any map resource (ex. "admbase-zombotech" or "snowvalley")? PS: If you know that you must not double post, why to do it? Edit your post!
  7. Go Multi Theft Auto! Let players know this is the best GTA Multiplayer Modification!
  8. 12p

    simple problem

    And even easier, with MTA Unnoficial Script Editor you can find where are these syntax errors.
  9. addEvent( "onSurf_shopStart", true ) function spawnboard(playersource) local x,y,z = getElementPosition( playersource ) ridecar = createVehicle ( 441, x, y+3, z) surfboard = createObject ( 2410, x, y+3, z, 0, 0, 0 ) setElementData ( ridecar, "purpose", "surfboard" ) attachElements ( surfboard, ridecar, 0, 0, 0, 0, 0, 270) setElementAlpha(ridecar, 0) setElementParent ( surfboard, ridecar) triggerClientEvent ( "surfboardcreated", getRootElement(), surfboard ) end addCommandHandler ( "surf", spawnboard ) [color=#FF0000]--[/color]DISABLED BECAUSE ITS LAME TO USE COMMAND HANDLERS addEventHandler( "onSurf_shopStart", getRootElement(), spawnboard) Don't forget to delete the "DISABLED..." or add "--" to it.
  10. 12p

    simple problem

    function findPlayerByName(playerPart) local pl = getPlayerFromName(playerPart) if isElement(pl) then return pl else for i,v in ipairs (getElementsByType ("player")) do if (string.find(getPlayerName(v),playerPart)) then return v end end end end function n1 (playerSource, command, arg1) if (arg1 == nil ) or arg1 == false then outputChatBox ("ERROR: You must insert a valid player name.", playerSource, 255, 0, 0, false) else local playerElement = findPlayerByName(arg1) if playerElement then local name = getPlayerName(playerElement) local sourceName = getPlayerName(playerElement) outputChatBox (getPlayerName(playerSource).." Says Nice One to "..getPlayerName(playerElement).."!", getRootElement(), 255, 255, 0, true) end end addCommandHandler("n1", n1) Just you added an "extra" "(" on getPlayerName ((playerElement)
  11. 12p

    Making a script.

    Scripting fight haha! Ñaca ñaca. Well, close this thread, moderators, I think question is solved.
  12. 12p

    Making a script.

    and getAccountData setAccountData if he wants the skin get saved to the next connection.
  13. Maybe it exist, but isn't available to public 'cause the author doesn't want to.
  14. 12p

    EDF Spawning

    How can I make my players get spawned on a EDF spawnpoint? I have no idea about doing that, I never used it.
  15. It just shows me LOTS of strange symbols, no download anywhere D:
  16. Let me try... EDIT: No, it doesn't solve the problem. EDIT2: NO, problem solved! thanks again varez LOL! What could I do without varez .
  17. Hi to everybody again . I have a big problem when I spawn my player on my new gamemode... It get spawned, but THE CAMERA IS FULLY DARK! Why? It's server-side (obviously, doesn't it?) if team == "gangs" then skin = math.random (102,104) spawnPlayer (source,314.24-math.random(0,2),-165.6,999.6,180,skin,6,0,"Gangs") elseif team == "army" then skinTry = math.random(0,2) if skinTry == 0 then skin = 73 elseif skinTry == 1 then skin = 179 elseif skinTry == 2 then skin = 287 end repeat until setCameraInterior (source,6) repeat until setCameraTarget (source,source) spawnPlayer (source,314.24-math.random(0,3),-165.6,999.6,180,skin,6,0,"Army") Hope you can help me to find the problem... EDIT: No debugscript errors. No camera or spawning errors get showed. EDIT2: Nothing about the "repeat until"s.
  18. Well, see, MTA, I've uploaded THIS resource long time ago. It has 4.2 as rating, and has exactly 10 votes. Why it doesn't is between the first 20 resources? It has better rating than "kwktotaldestruction" (4.1).
  19. Don't you know what returns you "nil"?
  20. 12p

    LUA Function

    varez's option is for to get players nº, client-side and server-side. My option is for to get it, only server-side. If you're going to use this info in a GUI element, then use varez's option.
  21. There is a QT thing that makes it. Man, try it ALL before talking.
  22. 12p

    LUA Function

    Like me, with my "realtime" resource, I didn't know setMinuteDuration() LOL!
  23. Nº1 MTA outside software! I just tried it, I LOVE it!
×
×
  • Create New...