Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. العفو ^ تاكد من القروب سيستم
  2. كتبت في اف 8 LetsTURF ؟
  3. turfS = { { PosX = 1462.74365, PosY = 1314.43579, PosZ = 10.82031, SizeX = 10, SizeY = 10, R = 255, B = 255, G = 255 }, { PosX = 1483.99304, PosY = 1511.78088, PosZ = 10.82031, SizeX = 10, SizeY = 10, R = 255, B = 255, G = 255 } } addCommandHandler ( "LetsTURF", function ( ) for _, v in ipairs ( turfS ) do addTurf ( v["PosX"], v["PosY"], v["PosZ"], v["SizeX"], v["SizeY"], v["R"], v["G"], v["B"] ) end end )
  4. جرب ذة : addEventHandler ( "onPlayerCommand", root, function ( msg ) if ( string.find ( msg, "register" ) ) then if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then outputChatBox ( "You Can Register 2 time only", source, 255, 0, 0, true ) cancelEvent ( ) else outputChatBox ( "Thank You For Registering", source, 255, 0, 0, true ) end end end ) function registerPlayer(username,password,passwordConfirm) if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then return exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFF You Can Only Register 2 Time",255,255,255,true ) end if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! An account with this username already exists!",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Passwords do not match!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please confirm your password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a username you would like to register with!",255,255,255,true) end end
  5. جرب : function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded ) then if (getElementData (source, "OnlyOneL") ~= true) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) setElementData ( source, "OnlyOneL", true ) else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFF You Can Only Register 1 Time",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! An account with this username already exists!",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Passwords do not match!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please confirm your password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a username you would like to register with!",255,255,255,true) end end
  6. منور ويزارد وشكرا على التشجيع شكرا لك على التشجيع
  7. Check Your Files and The Meta addEventHandler ( "onPlayerJoin", root, function ( ) setPlayerHudComponentVisible ( source, "all", false ); end; );
  8. MySQL Is For The Big Projects ..
  9. Example To Remove Client ^ Only You Need To Add cache="false" in the end
  10. Rockyz

    [HELP] Marker

    local Makedd = false; addCommandHandler ( "markerr", function ( plr ) if ( getElementType ( plr ) == "player" ) then if ( Makedd ~= true ) then w = createMarker ( -2805.87890625,1318.779296875,7.1015625, "cylinder", 1.5, 255, 255, 0, 170 ); Makedd = true; else outputChatBox ( "Marker is created", plr, 255, 0, 0, true ); end end end );
×
×
  • Create New...