Jump to content

TwiX!

Members
  • Posts

    905
  • Joined

  • Last visited

About TwiX!

  • Birthday 21/05/1992

Details

  • Gang
    Chuck Norris
  • Location
    Russia
  • Occupation
    Scripting [PHP/HTML/Mysql/Lua/Java Scripts/Web Design/3D modeling]
  • Interests
    My girl ;)

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

TwiX!'s Achievements

Hoodsta

Hoodsta (34/54)

0

Reputation

  1. you will get warning,and if player will training, your stats will ***cked
  2. I'm back! wait for new updates soon
  3. Just learn LUA, don't be lazy
  4. искать за тебя никто не будет, скрипт такой уже есть https://community.multitheftauto.com/
  5. function myCmd ( p ) if isGuestAccount ( getPlayerAccount ( p ) ) then return else local account = getPlayerAccount ( p ); local saveolskin = setAccountData ( account, "oldskin", tostring ( getElementModel ( p ) ) ); setElementModel ( p, 181 ); end end addCommandHandler ( "stJW", myCmd ) function MarkerHit( hitElement, matchingDimension ) if getElementType ( hitElement ) == "vehicle" then local veh = getPedOccupiedVehicle ( hitElement ) ; local occupant = getVehicleOccupant ( veh ); local account = getPlayerAccount ( hitElement ); local loadskin = getAccountData ( account, "oldskin" ); setElementModel ( occupant, tostring ( loadskin ) ); end end addEventHandler( "onMarkerHit", root, MarkerHit )
  6. ffs / tg they made own functions like fileOpen fileRead Etc
  7. @Memory function onResStart () executeSQLQuery ( "CREATE TABLE IF NOT EXISTS Points ( serial TEXT, points INTEGER DEFAULT 0 )" ); end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource ( ) ), onResStart ) -------------------------------- function onJoin ( ) local serial = getPlayerSerial ( source ); local getPoints = executeSQLQuery ( "SELECT points FROM Points WHERE serial=?", serial ); if type ( getPoints ) == "table" and #getPoints > 0 and getPoints[1] and getPoints[1].points then setElementData ( source, "Points", tonumber ( getPoints[1].points ) ); else executeSQLQuery ( "INSERT INTO Points VALUES ( ?, ? )", serial, 0 ); setElementData ( source, "Points", 0 ); end end addEventHandler ( "onPlayerJoin", root, onJoin) ---------------------------------------- function onPlayerQuit ( ) local getActualPoints = tonumber ( getElementData ( source, "Points" ) ); local serial = getPlayerSerial ( source ); local sql = executeSQLQuery ( "SELECT points FROM Points WHERE serial=?", serial ); executeSQLQuery ( "UPDATE Points SET points=? WHERE serial=?", getActualPoints, serial ); end addEventHandler("onPlayerQuit", root, onPlayerQuit) @~Gangsta~ на обоих
×
×
  • Create New...