-
Posts
1,646 -
Joined
-
Last visited
Everything posted by CapY
-
Just use mine script which is working and open your ports.
-
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.
-
But mine would also work, eh. P.S. I didn't know there's "onClientPedDamage" event.
-
Then just replace onPlayerDamage with onClientPlayerDamage. Thanks for that information, Kenix.
-
EDIT: Kenix was faster To get player's skin, use: getElementModel for team: getPlayerTeam
-
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.
-
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.
-
Then your country is not in the table!
-
I wasn't really looking is the key valid or not, just correcting the script.
-
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
-
Well, it works for me. Have you put it server-side ?
-
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 )
-
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 )
-
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.
-
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.
-
He just copied an wiki example, don't bother.
-
Fanboys would be going to report it and act like nothing happened. Then let me post at their IRC.
-
Would be better to link at SAMP forums.
-
You can always change the directory by right clicking on .exe file - properties and edit dir. path
