Jump to content

CapY

Members
  • Posts

    1,646
  • Joined

  • Last visited

Everything posted by CapY

  1. CapY

    Joooo

    Mozes mi dat ip ? Server jos nije otvoren.
  2. CapY

    JoinQuit

    Just use mine script which is working and open your ports.
  3. Hello NOD, The easier way of getting coordinates(X,Y)is to just start freeroam resource, go to desired location, type /gp, copy the coordinates from console. Have fun.
  4. But mine would also work, eh. P.S. I didn't know there's "onClientPedDamage" event.
  5. Then just replace onPlayerDamage with onClientPlayerDamage. Thanks for that information, Kenix.
  6. EDIT: Kenix was faster To get player's skin, use: getElementModel for team: getPlayerTeam
  7. local skinID = 155 local ped = createPed ( skinID, 20,30,2, 15 ) setElementFrozen ( ped, true ) addEventHandler ( "onPlayerDamage", root, function ( ) if source == ped then cancelEvent ( ) end end ) Haven't tested it, but it should work.
  8. cancelEvent on onPlayerDamage event and setElementFrozen to freeze the ped Also, createPed ( int modelid, float x, float y, float z , float rot = 0.0 ) 5th argument is rotation.
  9. CapY

    JoinQuit

    Then your country is not in the table!
  10. CapY

    Chat

    I wasn't really looking is the key valid or not, just correcting the script.
  11. CapY

    Chat

    Cannot argue with that. Anyways: function funcInput(player) outputChatBox ( getPlayerName ( player ) " imma faggot, who wants to fuck me in the ass?!", root, 0, 255,0 ) end function bindTheKeys ( player ) bindKey ( player, "ctrl", "down", funcInput ) end
  12. CapY

    Joooo

    Pozdrav! Hrvatski ti ide bas "dobro". Nazalost ja ti ne mogu pomoci, radim na vlastitom serveru. Ugodan ti boravak.
  13. CapY

    JoinQuit

    Well, it works for me. Have you put it server-side ?
  14. CapY

    Chat

    he means that i think bindKey("ctrl","down", function() outputChatBox( getPlayerName ( player) .. ": says who want to me in the ass?", root,0,0,0,true) end ) Your code won't work, "player" doesn't represents anything. bindKey("ctrl","down", function(player) outputChatBox( getPlayerName ( player) .. ": says who want to me in the ass?", root,0,0,0) end )
  15. CapY

    JoinQuit

    local countryNames = { ["AD"]="Andorra", ["AG"]="Antigua - Barbuda", ["AI"]="Anguilla Arabia", ["AL"]="Albania", ["AM"]="Armenia", ["AR"]="Argentina", ["AT"]="Austria", ["AU"]="Australia", ["AW"]="Aruba", ["BA"]="Bosnia", ["BE"]="Belgium", ["BG"]="Bulgaria", ["BH"]="Bahrain", ["BM"]="Bermuda", ["BN"]="Bronei ", ["BO"]="Bolivia", ["BR"]="Brazil", ["BS"]="Bahamas", ["BW"]="Botswana", ["BY"]="Belarus", ["BZ"]="Belize", ["CA"]="Canada", ["CC"]="Cocos", ["CH"]="Switzerland", ["CI"]="Ivory Coast", ["CL"]="Chile", ["CN"]="China", ["CO"]="Colombia", ["CU"]="Cuba", ["CY"]="Cyprus", ["CZ"]="Czech", ["DE"]="Germany", ["DK"]="Denmark", ["DM"]="Dominica", ["DO"]="Dominican", ["EC"]="Ecuador", ["EE"]="Estonia", ["EG"]="Egypt", ["ES"]="Spain", ["ET"]="Ethiopia", ["FI"]="Finland", ["FR"]="France", ["GB"]="Great-Britain", ["GL"]="Greenland", ["GY"]="Guyana", ["HR"]="Croatia", ["HU"]="Hungary", ["ID"]="Indonesia", ["IE"]="Ireland", ["IR"]="Iran", ["IS"]="Iceland", ["IT"]="Italy", ["IN"]="India", ["JO"]="Jordan", ["JM"]="Jamaica", ["jp"]="Mexico", ["KW"]="Kuwait", ["IT"]="Italy", ["LU"]="Luxembourg", ["LV"]="Latvia", ["MA"]="Morocco", ["MC"]="Monaco", ["MT"]="Malta", ["MX"]="Mexico", ["NG"]="Nigeria", ["NL"]="Netherlands", ["NO"]="Norway", ["PA"]="Panama", ["PE"]="Peru", ["PH"]="Philipines", ["PK"]="Pakistan", ["PL"]="Poland", ["PT"]="Portugal", ["QA"]="Qatar", ["RO"]="Romania", ["RU"]="Russia", ["SA"]="Saudi Arbia", ["SE"]="Sweden", ["SI"]="Slovania", ["TO"]="Tonga", ["TR"]="Turkey", ["UA"]="Ukraine", ["UK"]="United Kingdom", ["US"]="United States", ["UY"]="Uruguay", ["VN"]="Vietnam", ["YE"]="Yemen", ["YU"]="Yugoslavia", ["ZA"]="South Africa" } function onJoin() local country = exports['admin']:getPlayerCountry(source) setElementData(source,'Country', country) outputChatBox( getPlayerName ( source ) .. " has joined the game from " .. countryName[tostring(country)], 255, 100, 100 ) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin )
  16. CapY

    Chat

    bindKey("ctrl","down", function(player) outputChatBox("#005a5aWho want to me in the ass?", player,0,0,0,true) end ) Only the player which pressed "CTRL" will see it. bindKey("ctrl","down", function() outputChatBox("#005a5aWho want to me in the ass?", root,0,0,0,true) end ) Everyone will see it, make sure to put it server-side.
  17. Absolutely yes. He simply can do what Kenix said. Trigger the server text with onPlayerJoin ( same for cams ) function showTextDisplay ( player ) local serverDisplay = textCreateDisplay() textDisplayAddObserver ( serverDisplay, player ) local serverText = textCreateTextItem ( "Input text over here", 0.5, 0.5 ) textDisplayAddText ( serverDisplay, serverText ) end and stop it with onClientResourceStart.
  18. He just copied an wiki example, don't bother.
  19. Fanboys would be going to report it and act like nothing happened. Then let me post at their IRC.
  20. Would be better to link at SAMP forums.
  21. CapY

    A question

    That's reasonable, of course.
  22. CapY

    A question

    You can always change the directory by right clicking on .exe file - properties and edit dir. path
  23. CapY

    GUI Advanced

    Then just change interior
×
×
  • Create New...