Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. this is off-topic but i really laught at "Maroko" name haha
  2. Castillo

    Mute func

    dosn't admin panel already has this?
  3. thats your problem not mine, check all the script and find your bug. i fixed the main one that gui elements wasn't there
  4. Castillo

    How to Skins

    if you lie you make it worst dude. you can't import DFF models for PEDS.
  5. Castillo

    Mute func

    what do you mean? i don't understand.
  6. i just copied what he made but added to change all vehicles
  7. funcion lights () for i,v in pairs (getElementsByType("vehicle") do setVehicleHeadLightColor (v, math.random(0,255), math.random(0,255), math.random(0,255)) end setTimer ( lights, 200, 0 ) end addEventHandler ("onResourceStart", root, lights) try that.
  8. I don't like RACE servers they get players without script much and that makes me mad
  9. Castillo

    Phenom Gaming

    I agree with you varez, they ever offer same stuff.. i like the ones that offers $$$$
  10. wonderfull! i want to use some 1.1 scripting functions
  11. golden age? what do you mean
  12. You really suposed we was talking about real web sites ? Edit: btw this is the code of castillo.com, may sound hard, also you gotta add some other stuff on client side of system function createCastilloWeb() castillo = false castillo2 = false about_me = guiCreateLabel(0.0106,0.0118,0.2036,0.0619,"About me",true,Computer_scrollPane[1]) guiLabelSetColor(about_me,0,0,255) setElementData(about_me,"isLink",true) about_this_proyect = guiCreateLabel(0.1388,0.0177,0.2036,0.0619,"About this proyect",true,Computer_scrollPane[1]) guiLabelSetColor(about_this_proyect,0,0,255) setElementData(about_this_proyect,"isLink",true) end function create_about_this_proyect() about_memo = guiCreateMemo(0.0015,0.118,0.9578,0.3186,"This resource has been created by Castillo to be available for anyone that needs it, i only ask not to remove my credits of the resource.",true,Computer_scrollPane[1]) guiMemoSetReadOnly(about_memo,true) about_label = guiCreateLabel(0.0322,0.7652,0.8097,0.2212,"Cheers Castillo!",true,Computer_scrollPane[1]) guiLabelSetColor(about_label,255,0,0) end function create_about_me() about_me_memo = guiCreateMemo(0.0015,0.118,0.9578,0.3186,"Well i'm a 15 years old male, a old mta player also and i won't tell you anything more :P",true,Computer_scrollPane[1]) guiMemoSetReadOnly(about_me_memo,true) end function destroyCastillo() castillo = false destroyElement(about_memo) destroyElement(about_label) end function destroyCastillo2() castillo2 = false destroyElement(about_me_memo) end addEventHandler("onClientGUIClick",getRootElement(), function () if (source == about_this_proyect) then if castillo == true then destroyCastillo() end if castillo2 == true then destroyCastillo2() end create_about_this_proyect() castillo = true elseif (source == about_me) then if castillo == true then destroyCastillo() end if castillo2 == true then destroyCastillo2() end create_about_me() castillo2 = true end end)
  13. Castillo

    How to Skins

    you are a multi-account guy O_o?
  14. varez.. what do you mean?? i'm not talking about real web sites its virtual..
  15. huh? i didn't made any with that URL.. i just made www.castillo.com and www.radioulti.net
  16. thats what i want, if you are really interested on it tell me all bugs you seen and give me suggestions!!
  17. Does someone still interested on this resource? because i see the topic like died.. i expected to get noticed of bugs, add suggestions, you know.
  18. client side: LoginWin = guiCreateWindow(532,337,359,234,"LoGiN SySTeM v1.0",false) loginLabel1 = guiCreateLabel(26,64,61,18,"Username:",false,LoginWin) guiLabelSetColor(loginLabel1,255,139,0) guiLabelSetVerticalAlign(loginLabel1,"top") guiLabelSetHorizontalAlign(loginLabel1,"left",false) loginLabel2 = guiCreateLabel(52,181,5,5,"",false,LoginWin) guiLabelSetColor(loginLabel2,255,255,255) guiLabelSetVerticalAlign(loginLabel2,"top") guiLabelSetHorizontalAlign(loginLabel2,"left",false) loginLabel3 = guiCreateLabel(26,108,61,18,"Password:",false,LoginWin) guiLabelSetColor(loginLabel3,255,139,0) guiLabelSetVerticalAlign(loginLabel3,"top") guiLabelSetHorizontalAlign(loginLabel3,"left",false) usernameEditLogin = guiCreateEdit(92,59,228,31,"",false,LoginWin) passwordEditLogin = guiCreateEdit(92,103,228,31,"",false,LoginWin) logbtn = guiCreateButton(22,171,138,22,"Log In",false,LoginWin) regbtn = guiCreateButton(197,171,138,22,"Register",false,LoginWin) guestbtn = guiCreateButton(22,199,313,23,"Guest",false,LoginWin) loginLabel4 = guiCreateLabel(127,28,107,16,"Log in or Register.",false,LoginWin) guiLabelSetColor(loginLabel4,255,255,255) guiLabelSetVerticalAlign(loginLabel4,"top") guiLabelSetHorizontalAlign(loginLabel4,"left",false) guiSetFont(loginLabel4,"default-bold-small") function receiveVars( allow, email) local playername = getPlayerName(localPlayer) guiSetText(LoginUsername, "") guiSetText(EditRegisterUsername, "") if (email == "false") then guiSetVisible(LblRegisterEmail, false) guiSetVisible(EditRegisterEmail, false) end if (allow == "false") then guiDeleteTab(TabRegister, TabPanel) end guiSetSelectedTab(TabPanel, TabLogin) guiSetText(usernameEditLogin, playername) guiSetText(usernameEditPassword, playername) guiSetVisible(LoginWin, true) guiBringToFront(LoginWin) guiSetInputEnabled(true) showCursor(true) end addEvent( "onSendVars", true ) addEventHandler( "onSendVars", getRootElement(), receiveVars ) function windowHandler() triggerServerEvent("onNeedVars", getLocalPlayer()) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), windowHandler) function onClickBtn(button, state) if(button == "left" and state == "up") then if(source == logbtn) then triggerServerEvent("onLogin", getRootElement(), localPlayer, guiGetText(usernameEditLogin), guiGetText(usernameEditPassword)) end end end addEventHandler("onClientGUIClick", logbtn, onClickBtn, false) function onClickBtn1(button, state) if(button == "left" and state == "up") then if(source == regbtn) then triggerServerEvent("onRegister", getRootElement(), localPlayer, guiGetText(usernameEditLogin), guiGetText(usernameEditPassword)) end end end addEventHandler("onClientGUIClick", regbtn, onClickBtn, false) function onClickBtn2(button, state) if(button == "left" and state == "up") then if(source == guestbtn) then guiSetInputEnabled(false) guiSetVisible(LoginWin, false) showCursor(false) end end end addEventHandler("onClientGUIClick", guestbtn, onClickBtn, false) function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(LoginWin, false) showCursor(false) end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) server side: function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if ( not isGuestAccount ( account ) ) then -- For every player that's logged in.... logOut ( player ) -- Log them out. end if (logIn ( player, account, pass ) == true) then triggerClientEvent ( player, "hideLoginWindow", getRootElement()) else outputChatBox ( "Login error!", player, 255, 255, 0 ) -- Output they got the details wrong. end else outputChatBox ( "Wrong username or password!", player, 255, 255, 0 ) -- Output they got the details wrong. end end addEvent( "onLogin", true ) addEventHandler( "onLogin", getRootElement(), onLogin ) function onRegister ( player, user, pass, email ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent ( player, "hideLoginWindow", getRootElement()) else outputChatBox ( "Login error!", player, 255, 255, 0 ) -- Output they got the details wrong. end else account = addAccount ( user, pass ) setAccountData ( account, "email", email) if (logIn ( player, account, pass ) == true) then triggerClientEvent ( player, "hideLoginWindow", getRootElement()) else outputChatBox ( "Register/Login error!", player, 255, 255, 0 ) -- Output they got the details wrong. end end end addEvent( "onRegister", true ) addEventHandler( "onRegister", getRootElement(), onRegister ) function needVars() local allow_register = get("allow_register") local email_on_register = get("email_on_register") triggerClientEvent(source, "onSendVars", getRootElement(), allow_register, email_on_register) end addEvent("onNeedVars", true) addEventHandler("onNeedVars", getRootElement(), needVars)
  19. Castillo

    Phenom Gaming

    I added you in my MSN, i would like to know what kind of Roleplay you want, because there are many Roleplay styles, here is a small list. Roleplay - Real life style (i hate it). Roleplay - A player panel where you can spawn your car any place you want. Roleplay - With teams like Cops, Robber, Etc, Etc.
  20. Thats right varez, if you can find nice people then you can play and you don't get bored that fast like in other servers.
  21. damn varez, i was posting them too
  22. this is a helping forum but you are asking us to make the script for you which is not going to happend.
  23. wtf do you mean? 50p mod shop dosn't has anything to save if i'm right, you got to build this by your own.
×
×
  • Create New...