Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Why don't you try yourself?
  2. Anubhav

    Alliance

    addEventHandler( "onClientPlayerDamage", root, function ( theAttacker ) if isElement( source ) and isElement( theAttacker ) then --- check if is element ... if getElementType(theAttacker) == "player" then if getTeamName( getPlayerTeam( theAttacker ) ) == "Army" and getTeamName( getPlayerTeam( source ) ) == "SWAT" then --- check teams cancelEvent() end end end end
  3. That means parent is not set. Please check if its..
  4. Add me on skype, anubhav.agarwal87. I know how to do that.
  5. No problem. I told right
  6. Replace it with any other vehicle. There are many other vehicles too!
  7. Anubhav

    invite

    Just add me on skype, anubhav.agarwal87. I'll make you learn SQLite,
  8. I am not sure what is wrong now :-/.
  9. Replace it with resourceRoot it will work fine then. And change destroyVeh to destroyVehicle typo.
  10. See my edited post. And replace 'colshape' with your colshape variable.
  11. addEventHandler("onColShapeHit", colshape, function(hit) local occupied = getPedOccupiedVehicle(hit) if hit then outputChatBox("You car will be destroyed within 5 secs! This area doesn't accept vehicles!", hit) setTimer(destroyVeh, 5000, 1, occupied) end setElementData(hit, "no-damage", true) end ) addEventHandler("onColShapeLeave", colshape, function(hit) removeElementData(hit, "no-damage") end ) addEventHandler("onPlayerDamage", root, function() if getElementData(hit, "no-damage") then cancelEvent() end end )
  12. Add me at skype, we'll see. anubhav.agarwal87
  13. Try changing the size to '5000' And see if the green boxes appear.
  14. Can you see the boxes? FIND in SA.
  15. -- if server sided function health(thePlayer) local ppHealth = getElementHealth(thePlayer) setElementHealth(thePlayer,ppHealth + 2) end addCommandHandler("health", health) -- if client sided function health() local ppHealth = getElementHealth(localPlayer) setElementHealth(localPlayer,ppHealth + 2) end
  16. Anubhav

    invite

    He must use account-date in a proper way.. I am not sure contact him.
  17. Which are those lines in this script?
  18. Anubhav

    invite

    I know. Thats why I told MySQL/SQL.
  19. Anubhav

    invite

    tableName = {} function createTm(player, commandName, teamName) local acc = getPlayerAccount(player) if isGuestAccount ( acc ) then outputChatBox("You must login first !",player,255,0,0) return end if getAccountData(acc,"histeam") then outputChatBox("You already have team !",player,255,0,0) return end for k,v in ipairs(tableName) do if v == teamName then outputChatBox("Team exists.", player, 255, 0, 0) return end end if not teamName then outputChatBox("Please Write valid name usage /ct teamname !",player,255,0,0) return end if acc and not isGuestAccount ( acc ) and not getAccountData(acc,"histeam") and teamName then Team = createTeam(teamName) if Team then outputChatBox("Team created successfully !",player,0,255,0) table.insert(tableName, teamName) setAccountData(acc,"histeam",getTeamName ( Team )) setPlayerTeam(player,Team) else outputChatBox("Failed to create team !",player,255,0,0) end end end addCommandHandler("ct",createTm)
  20. function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then logIn ( player, account, pass ) triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Login error!", player, 255, 255, 0 ) end end addEvent( "onLogin", true ) addEventHandler( "onLogin", getRootElement(), onLogin ) function onRegister ( player, user, pass ) local account = getAccount ( user, pass ) if ( account == false ) then account = addAccount ( user, pass ) logIn ( player, account, pass ) triggerClientEvent ( "hideLoginWindow", getRootElement()) else outputChatBox ( "Register/Login error!", player, 255, 255, 0 ) end end addEvent( "onRegister", true ) addEventHandler( "onRegister", getRootElement(), onRegister )
  21. Anubhav

    invite

    You can use tables then.
  22. Please go to your cPanel of Delux host and open a ticket there. We won't be able to help you like this. It maybe because of over-heating or RAM getting finished.
  23. smoothMoveCamera https://wiki.multitheftauto.com/wiki/SmoothMoveCamera
×
×
  • Create New...