-
Posts
188 -
Joined
-
Last visited
Everything posted by Toffbrown
-
"resource.Login" /> add this to the admin ACL group
-
guiCreateMemo( x,y,z,height,width)
-
getEventHandlers ( onClientClick, aButton ) unsure if that's what you mean?
-
can you please describe your Question better
-
is this a stolen resource because no one help's with leaked scripts
-
local marker = createMarker ( float x, float y, float z ) addEventHandler ("onColShapeHit", marker, function( hitElement, getLocalPlayer ) if( getLocalPlayer(hitElement)) then destroyElement(hitElement) end end this is just a quick throw together not sure if works but it would use same variables
-
Add this to the original Script function savTeam() local account = getPlayerAccount(source) local team = getAccountData (account, "team") if (team) and getTeamFromName(team) then setPlayerTeam(source, getTeamFromName( team )) end end addEventHandler("onPlayerLogin",root,savTeam) function update() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName( team )) end end addEventHandler("onPlayerQuit", getRootElement(), update)
-
Ahh nice way of doing Vinctus but that does confuse alot of new beginners
-
what do you mean don't save? like when the server restarts or when the play exits the server and reconnect they aren't in it anymore?
-
Cheers man it always used to work
-
ahhh i see let me test function test ()
-
With your script you don't need Admin = createTeam and also 255, 255, 255 is white he wanted red Please follow or use what i posted because what i wrote was correct, also add open up your mtaserver.conf and go all the way down to the bottom and paste or change it to what folder you used for the script
-
function team () createTeam ( "test", 255, 0, 0 ) end addEventHandler("onResourceStart", resourceRoot, team) function team () createTeam ( "test", 255, 0, 0 ) end addEventHandler("onResourceStart", resourceRoot, team) My Lua isnt working on here
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=9064 Here i uploaded it and don't fret we are always learning, now function team () ----- this is the start of your function createTeam ( "vXHazE", 255, 0, 0 )--- this is the function that happends the " " is the team name in tab and 255, 0, 0 is the RGB color coding so RGB = Red,Green,Blue and you said red so the colour will be 255 end------ this ends the function addEventHandler("onResourceStart", resourceRoot, team)---- this is what causes the function do execute the functions basically so onResourceStart runs the function when this resource starts EDIT idk why but my Lua isnt working on here
-
what exactly did you try?, did you try mine and also post your code
-
function team () createTeam ( "nameofteamyouwanthere", 255, 0, 0 ) end addEventHandler("onResourceStart", resourceRoot, team) its a pretty easy script banged it together in a minute Just add it to the default startup
-
Hey there Multi Theft Auto comunity, Search JJ's Stunt N....... in your MTA browser or connect to 77.75.123.211:22003 Is anyone looking for a fun and enjoyable freeroam to play? if so why don't you come try out JJ's Stunt and Freeroam, we have many mods such as cars and skins and most are pretty HQ. We also have a fair few custom maps that you wont find on another server except the lovely Track in San Fierro near the red bridge, this has had some extra details put into it though. We are also looking for some new maps to add but also us being wary of the download with the custom models. Our most popular script we have in the server is a script made by another scripter Famas. This script allows you to attach to your local player different models which does allow collisions with a general but easy GUI ( don't worry about ramming with this, we highly moderate this ) We are a fun and loving comunity, With friendly staff and yes unlike some servers our staff are over the age of twelve (twelvies).And the owners are always accepting every one. we used to have max players ranging from 80 to 60 we have even had a few full houses but due to having DdoS attacks and other variations of attacks such as Advertising and just plain old manipulation we have lost more than half our player count due to the attacks which is very sad, so thats why im here to try and rise the player count maybe this wont work but im happy at the very least because you have read this. If you have even considered joining please just think again and just try it out you cant really loose much, hey??? even if you don't like it please leave some criticism but constructive Please, its a thing to criticize, but constructive really does help the player yourself and other players The server is an English owned and hosted ( United Kingdom ) we allow all languages but please bare in mind we might not be able to help you because of your foreign language. We are always open for new ideas and suggestions. Anyways ill conclude to you by saying best of luck to everyone for the future whether you decide to join or not, and if you liked the server please share or spread, we would really love to become "popular" again and please we know who is attacking the server, its just pointless to do it and im pretty sure any server owner or previous owner can agree with that statement Contact us Via https://www.facebook.com/JJsStuntnFreeroam http://jjs-freeroam.enjin.com/
-
another example is [FNY]Logix it detects the o in logix and F in first bracket
-
hi just wondering if i could use a better find value to find only [FO] because it kicks players with like [xx] and fontmaker etc
-
thanks heaps Prestege have an awesome day :3
-
function loginPlayer ( ) local name = getPlayerName ( source ) if ( string.find(name,"[VIP]")) then kickPlayer (source,"Remove the [VIP] Tag") end end addEventHandler ( "onPlayerJoin", root, loginPlayer ) addEventHandler ( "onPlayerChangeNick", root, kick ) how can i make this kick the player when they change their nick to [VIP] ingame? i have also tried unction kick(oldN,newN) local name = getPlayerName(source) if ( string.find(name,"[VIP]")) then kickPlayer(source,"[VIP] Tag is banned, please remove it") end end addEventHandler("onPlayerChangeNick",root,kick) but it kicks the actual player when they change nick to anything like if they type nick jdshjkfhsd it kicks them
-
what functions would i use to check if another language ?