URBAN

Members
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

2 Neutral

1 Follower

About URBAN

  • Rank
    Member
  • Birthday 12/12/00

Details

  • Location
    Turkey
  • Occupation
    Student
  • Interests
    Programming/Scripting

Recent Profile Visitors

148 profile views
  1. MySQL Serial

    function getPserial (player,cmd) local serial = getPlayerSerial(player) local db = dbPoll(dbQuery(connection,"SELECT * FROM accounts WHERE serial = ?", serial), -1) for i, row in ipairs(db) do return outputChatBox("Serial Found") end return outputChatBox("Serial Not Found") end addCommandHandler("getserial") This will work.
  2. local friends = { ["Emergency"] = true, } function onStart () for index, theTeam in ipairs(friends) do if (getTeamFriendlyFire(getTeamFromName(theTeam)) == false) then setTeamFriendlyFire(getTeamFromName(theTeam),true) end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onStart) setTeamFriendlyFire and getTeamFriendlyFire wants team, not team name. So u need to use getTeamFromName. And also you should call this function in onResourceStart --- function onStart () for i = 0,46 do setWeaponProperty(i,"poor","damage",getOriginalWeaponProperty(i,"poor","damage")) setWeaponProperty(i,"std","damage",getOriginalWeaponProperty(i,"std" "damage")) setWeaponProperty(i,"pro","damage",getOriginalWeaponProperty(i,"pro","damage")) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onStart) This code will revert all weapons damages to original.
  3. script de boot / boot script

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=9117 and as i know it needs slothbot https://community.multitheftauto.com/index.php?p=resources&s=details&id=672
  4. https://wiki.multitheftauto.com/wiki/DxDrawCircle https://wiki.multitheftauto.com/wiki/DxDrawLine https://wiki.multitheftauto.com/wiki/BindKey Here you are.
  5. Player exit vehicle

    @joriss11 Yes its possible use setControlState(player,"enter_exit",true) instead of removePedFromVehicle(player)
  6. Player exit vehicle

    @joriss11 function checkDamage(loss) if getElementHealth(source) > 301 then setVehicleDamageProof(source,false) setVehicleEngineState(source,true) else setVehicleDamageProof(source,true) setVehicleEngineState(source,false) for i,player in pairs(getVehicleOccupants(source)) do removePedFromVehicle(player) end end end addEventHandler("onVehicleDamage",getRootElement(),checkDamage) Use this version i just changed position of loop
  7. Player exit vehicle

    Which side did u try? I tried that it works well. put it on server side.
  8. Player exit vehicle

    This is better use this. Regards, URBAN
  9. closed

    I'm really sorry When will the end of time ?
  10. closed

    closed