Jump to content

Spanish4Life

Members
  • Posts

    153
  • Joined

  • Last visited

Posts posted by Spanish4Life

  1.   
    local R_N = math.random(2) 
    if qaisjp == lostingTime and R_N == 0 or R_N == 1 then 
    outputChatBox("Go work on F+, spammer!") 
    elseif qaisjp == lostingTime and R_N == 2 then 
    outputChatBox("Get a life!") 
    else 
    return itWasAJoke 
    end 
      
    

  2. Why not to make peds render, like entities on Minecraft?!?!?!?

    Try to do it ;)

    Well, i don't know C++. But if people knowd to make glue script, with that mathematics

                        local px, py, pz = getElementPosition(getLocalPlayer()) 
                        local vx, vy, vz = getElementPosition(vehicle) 
                        local sx = px - vx 
                        local sy = py - vy 
                        local sz = pz - vz 
                         
                        local rotpX = 0 
                        local rotpY = 0 
                        local rotpZ = getPedRotation(getLocalPlayer()) 
                         
                        local rotvX,rotvY,rotvZ = getElementRotation(vehicle) 
                         
                        local t = math.rad(rotvX) 
                        local p = math.rad(rotvY) 
                        local f = math.rad(rotvZ) 
                         
                        local ct = math.cos(t) 
                        local st = math.sin(t) 
                        local cp = math.cos(p) 
                        local sp = math.sin(p) 
                        local cf = math.cos(f) 
                        local sf = math.sin(f) 
                         
                        local z = ct*cp*sz + (sf*st*cp + cf*sp)*sx + (-cf*st*cp + sf*sp)*sy 
                        local x = -ct*sp*sz + (-sf*st*sp + cf*cp)*sx + (cf*st*sp + sf*cp)*sy 
                        local y = st*sz - sf*ct*sx + cf*ct*sy 
                         
                        local rotX = rotpX - rotvX 
                        local rotY = rotpY - rotvY 
                        local rotZ = rotpZ - rotvZ 
      
    

    I don't know if scripting guru's will not know to do that :)

  3. Why not to make peds render, like entities on Minecraft?!?!?!?

    Well, chunks of 16x16x(currentZAxis)^2). It creates the peds only in that "chunk". If 2 is nearby the same chunk, in same of 16^2x16^2x((currentZAxis)^2)^2, 16x16x(currentZAxis^2)^2. When the ped goes out that "chunk", syncher stops on that entity and goes to create another ped, in the begging of the chunk, in the specified path.

    That way this can be fixed making a function, for scripting, maybe:

    toggleNPC(bool, [path = int, canDrive = bool])

  4. add a place where we can see the new or and HOT topics

    newactive.png

    If "View new posts" wasn't there I would've killed myself ages ago trying to moderate the forum.

    Towncivilian FTW

    a onine radio We need to make the forums anything to make this interesting. If I search in a forum, i don't wanna a forum that has the average of 10 posts by day.

  5. Maybe events and mini-games.

    Just, try to recreate original GTA San Andreas concept (without missions), and you'll get a good freeroam GM :D

    They would be pretty tough to recreate in LUA due to their size. The Pool minigame alone has something like 8000 lines of code in the SCM.

    And how do you know that if GTA extra scripts are obfuscated?

  6. it's a minor issue with the way the killing weapon is found. when someone dies mta knows which player caused the death, but does not know what weapon caused it (there are a few exceptions, fire from a molotov for instance), so it just checks what weapon the killer is holding at the time of death. this way, if you kill someone with a slow projectile like a rocket it can look like you killed him im a completely different way, or in case of the parachute, if you punch someone to death whike having it selected it will assume the parachute was the killing weapon.

    Thanks you.

  7. Must be because getLocalPlayer() is only CLIENT SIDE and onPlayerWasted is a server side event.

    Yea, good job solidsnake :D Always you are right.

    Well you have to do that server sided and don't use getLocalPlayer() func.

    Haha, no: i only needed onClientPlayerWasted. I have strange behaviour, howewer:

    When I type kill, shows "63" from killer and "2089943303" for weapon. Also, when i drowned i got "53" from killer, why this strange behaviour?

    Then use onClientPlayerWasted -.-
  8. Must be because getLocalPlayer() is only CLIENT SIDE and onPlayerWasted is a server side event.

    Yea, good job solidsnake :D Always you are right.

    Well you have to do that server sided and don't use getLocalPlayer() func.

    Haha, no: i only needed onClientPlayerWasted. I have strange behaviour, howewer:

    When I type kill, shows "63" from killer and "2089943303" for weapon. Also, when i drowned i got "53" from killer, why this strange behaviour?

×
×
  • Create New...