Jump to content

[UVA]Bart

Members
  • Posts

    359
  • Joined

  • Last visited

Everything posted by [UVA]Bart

  1. .timerads 0 300 slr.advertstime $1- change the 300 to 60 for 60 seconds like so .timerads 0 60 slr.advertstime $1-
  2. lol i have released 2 scripts in the time that he, well hasnt even released it yet. wait omg i might have another script released when i put it all in to hash and added some new features
  3. this is the one you need to download mtasa slr-v-1.1.rar
  4. ok when you are ingame type in !add if it says that you have already used this command then you need to go in mycomputer/local c/program files/ then to loginin you simply login like /rcon_login pm me the name of the server and i will come and have a look later today when i get back
  5. what have you done lol have you typed in !add ? also it will say in pink that you are level 1 but then the script changes it then when you login it will say logged in level: 10
  6. ok you need to get the mta.config you know where that is then look at the bottom of the config for this # Admin # Required: No # Purpose: Defines all the people in-server who can rcon_login to admin # Format - Admin # Notes: # admin-level must not go above 5 # Names and passwords are case sensitive #Admin admin <1> (note this has to be set as number 1 for the 10 levels to work) then when you go in game with the script type in !add this will then add you as the main admin level 10. to login as level 10 simply type in the text box at the top right /rcon_login let me know how you have gone on with this
  7. lil san you can use the trace script to find there location automatically then compair the trace location to a language then send the message in the language that the trace script returned shouldnt be too hard to do and im no pro
  8. add me on msn [email protected] will look at your config and see if you have filled it in correctly also mine is level 10 but its not as good as scoobs level 5
  9. making it in to hash now and adding new features
  10. DO IT YOUR SELF IN THE TIME THAT YOU HAVE TRIED TO RELEASE ONE SCRIPT I HAVE RELEASED 2
  11. errm i dont know but will look in to it i will see if you can write all the past stats from hash to ini but im not certain it will work so..... one more thing i nearly forgot to add you as admin level 10 you must be in the mta.config as level 1 and then type !add to login you use the same was as before /rcon_login but it then and repeat this for all the other admins
  12. no probs if you need any more info post here
  13. ok lol check my script out viewtopic.php?f=30&t=20496 theres a nice command that lets you add commands from ingame you can use it if you mention me here it is. elseif ($3 == !addcmd) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level elseif ($4 == $null) || ($5 == $null) || ($6 == $null) mta.pm $1 $2 Error: Do !cmdhelp for codes to use else { if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) >= 5) { !writeini -n slrcommands.ini command $5 $6- !writeini -n slrcommands.ini commands $5 $4 mta.pm $1 $2 Your Command Has Been Added } } } elseif ($3 == !-) { var %b = $readini(slrcommands.ini,commands,$4) if ($readini(slrcommands.ini,command,$4) == $null) mta.pm $1 $2 Error: The Command $4 Has Not Been Added Yet. if (player isin $readini(slrcommands.ini,command,$4)) && (%b == text) { mta.text $1 $replace($readini(slrcommands.ini,command,$4),player,$mta.nick($1,%a)) } elseif (player isin $readini(slrcommands.ini,command,$4)) && (%b == pm) { mta.pm $1 $2 $replace($readini(slrcommands.ini,command,$4),player,$mta.nick($1,%a)) } elseif (players isin $readini(slrcommands.ini,command,$4)) && (%b == text) { mta.text $1 $replace($readini(slrcommands.ini,command,$4),players,$mta.nick($1,%a) $+ 's) } elseif (players isin $readini(slrcommands.ini,command,$4)) && (%b == pm) { mta.pm $1 $2 $replace($readini(slrcommands.ini,command,$4),players,$mta.nick($1,%a) $+ 's) } elseif (%b == pm) { mta.pm $1 $2 $readini(slrcommands.ini,command,$4) } elseif (%b == text) { mta.text $1 $readini(slrcommands.ini,command,$4) } } elseif ($3 == !cmdhelp) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level else { if ($mta.level($1,$2) > 0) { mta.pm $1 $2 !addcmd <pm or text> <name of the command> <what text it says> .timer mta.pm $1 $2 Codes: pm (pm the text to the player) - text (say the text in text) - player (returns a players nick ie/ DirtBikeRider) - players (returns a players nick with a s on the end ie/ DirtBikeRiders) } } } elseif ($3 == !remcmd) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level if ($readini(slrcommands.ini,command,$4) == $null) mta.pm $1 $2 Error: This Command Has Allready Been Removed elseif ($4 == $null) mta.pm $1 $2 Error: !remcmd <cmd name> else { if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) >= 5) { !remini -n slrcommands.ini command $4 !remini -n slrcommands.ini commands $4 mta.pm $1 $2 The Command $4 Has Been Removed } } } } theres a code used for it so if i go !addcmd text lol players laughing out loud the script then when it reads players changes it to $mta.nick($1,%a) $+s so when a player does !- lol it says dirtbikeriders laughing out loud in yellow text. but if i do !addcmd pm lol player laughing out loud note this time its pm and just player so when a player does !- lol it says dirtbikerider laughing out loud in pm
  14. well here the link is to download it [attachment=0]mtasa slr-v-1.1.rar[/attachment]
  15. this is my new 10 level admin script it has some new features :- {player commands} {player commands} !stats~~~~~~~~~~~~~~~~~~~~~~a players stats !points~~~~~~~~~~~~~~~~~~~~~a players points !id~~~~~~~~~~~~~~~~~~~~~~~~ returns a players id !visits~~~~~~~~~~~~~~~~~~~~~ returns a players total visits to the server !played ~~~~~~~~~~~~~~~~~~~~the ammount of times the the current map has been played !totalvisits ~~~~~~~~~~~~~~~~~the total visits the server has had !totalmaps ~~~~~~~~~~~~~~~~~the total number of maps uploaded !playercount ~~~~~~~~~~~~~~~~the total number of players in the server !mapname ~~~~~~~~~~~~~~~~~returns the name of the current map !maxping ~~~~~~~~~~~~~~~~~~the servers max ping limit !ping ~~~~~~~~~~~~~~~~~~~~~~a players ping !info ~~~~~~~~~~~~~~~~~~~~~~server info !level ~~~~~~~~~~~~~~~~~~~~~the level of a player !time ~~~~~~~~~~~~~~~~~~~~~the time/date in the format day/month/date/time/year ie/ fri sept 14 15:01:23 2007 !rate~~~~~~~~~~~~~~~~~~~~~~ rates the current map !unrate ~~~~~~~~~~~~~~~~~~~player can remove there own rating !rating ~~~~~~~~~~~~~~~~~~~~returns the current maps rating !mode ~~~~~~~~~~~~~~~~~~~~returns the current mode of a map !seen ~~~~~~~~~~~~~~~~~~~~~last time and date a player was seen !url/website ~~~~~~~~~~~~~~~returns the url for the website !serverip/sip ~~~~~~~~~~~~~~returns the server's ip address and port !commands~~~~~~~~~~~~~~~~all the commands !admin~~~~~~~~~~~~~~~~~~~~the current online admins !- ~~~~~~~~~the player can use commands added by the admin !bank/money/cash~~~~~~~~~~ a players total cash, how many loans they have had and how many they have paid back, how much cash they have in there bank !cashin~~~~~~~~~~~~~~~~~~~~~~allows a player to cash money in to the bank !bankcash~~~~~~~~~~~~~~~~~~~~the total ammount of cash in the bank !withdraw~~~~~~~~~~~~~~~~~~~~the player can withdraw money from there bank !buydmwins~~~~~~~~~~~~~~~~~~ buy 5 dmwins !buyracewins~~~~~~~~~~~~~~~~~ buy 5 racewins !buypoints~~~~~~~~~~~~~~~~~~~ buy 60 points !bankloan ~~~~~~~~~~~~~~~~~~~take a loan out (max loan can be configured in the controle pannel) !repayloan ~~~~~~~~~~~~~~~~~~~repays a loan if they dont before the player quits next time they join its double the ammount of what the loan was. !buymap ~~~~~~~~~~~~~~~~~~~~a player can buy a map and everytime its played the player gets money !buyfreeze ~~~~~~~~~~~~~~~~~~a player can buy freeze and then use it to freeze themself of another player !myfreeze ~~~~~~~~~~~~~~~~~~~it alows a player to use there freeze if they bought one !mymaps~~~~~~~~~~~~~~~~~~~~ it shows the ammount of maps a player has bought !buyitems~~~~~~~~~~~~~~~~~~~ all the items that come in the script {admin commands} !add~~~~~~~~~~~~~~~~~~~~~~~~adds you as the main admin level 10 (but you must be in the mta.config file as level 1 for the commands to work) !idlist~~~~~~~~~~~~~~~~~~~~~~~ a full pm of all the players id !ban~~~~~~~~~~~~~~~~~~~~~~~~~bans the name or id of a player !kick ~~~~~~~~~~~~~~~~~~~~~~~~kicks the name or id of a player !freeze ~~~~~~~~~~~~~~~~~~~~~~freezes the name or id of a player !unfreeze ~~~~~~~~~~~~~~~~~~~~ unfreezes the name or id of a player !mute ~~~~~~~~~~~~~~~~~~~~~~~mutes the name or id of a player !unmute ~~~~~~~~~~~~~~~~~~~~~unmutes the name or id of a player !random/map ~~~~~~~~~~~~~~~~starts a random map !changemap~~~~~~~~~~~~~~~~~~changes the map to a name specified !addping ~~~~~~~~~~~~~~~~~~~~adds a maxping !slr ~~~~~~~~~~~~~~~~~~~~~~~~~restarts the script !rerun ~~~~~~~~~~~~~~~~~~~~~~~reruns the current map !remrate ~~~~~~~~~~~~~~~~~~~~~removes any players rating !addallmodes~~~~~~~~~~~~~~~~~ allows a admin to set all the map modes as dm/ or race !addmode ~~~~~~~~~~~~~~~~~~~~allows a admin to set single maps as dm/ race !remmap ~~~~~~~~~~~~~~~~~~~~~removes the current map and starts a random one . !pmalias~~~~~~~~~~~~~~~~~~~~~~pms a players alias !alias~~~~~~~~~~~~~~~~~~~~~~~~says in text a players alias !subalias~~~~~~~~~~~~~~~~~~~~~says in text a players subalias !pmsubalias~~~~~~~~~~~~~~~~~~pms a subalias !getip~~~~~~~~~~~~~~~~~~~~~~~gets a players ip !getsubip~~~~~~~~~~~~~~~~~~~~gets a players sub ip !addadmin ~~~~~~adds a admin (dont forget to add them as level 1 in the mta.config file) !addlevel~~~~~~~~~~~~~~~~~~~~adds a admin !remadmin~~~~~~~~~~~~~~~~~~~removes a admin (dont forget to remove them from the mta.config file) !addadvert~~~~~~~~~~~~~~~~~~~adds a advert message !startads~~~~~~~~~~~~~~~~~~~~~starts the adverts !stopads~~~~~~~~~~~~~~~~~~~~~~stops the adverts !addcmd~~~~~~~~~~~~~~~~~~~~~~adds a command like lol !remcmd~~~~~~~~~~~~~~~~~~~~~removes a added command like lol !cmdhelp~~~~~~~~~~~~~~~~~~~~~gives the codes used to add a command ie/ pm (pm the text to the player) - text (say the text in text) - player (returns a players nick ie/ DirtBikeRider) - players (returns a players nick with a s on the end ie/ DirtBikeRiders) will post a link here when i have tested it later on tonight. post as many comments as you can for ideas
  16. ok on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !server) mta.text $1 PotholeStudios.com MTA Race-VDM-CnR Server! elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !afk) mta.text $1 $mta.nick($1,%a) is Away From Keyboard. elseif ($3 == !back) mta.text $1 $mta.nick($1,%a) has Returned. elseif ($3 == !bak) mta.text $1 Guess who's back, Back Again, $mta.nick($1,%a) $+ 's Back, RUN IN FEAR! elseif ($3 == !brb) mta.text $1 $mta.nick($1,%a) will Be Right Back. elseif ($3 == !poof) mta.text $1 $iif((!$4),There is a Poof in here., $mta.nick($1,%a) is a big Poof.) elseif ($3 == !stfu) mta.text $1 $iif((!$4),Everyone SHUT THE UP., $mta.nick($1,%a) SHUT THE UP.) elseif ($3 == !lol) mta.text $1 $mta.nick($1,%a) Laughs out loud. elseif ($3 == !lmao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !lmfao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !rofl) mta.text $1 $mta.nick($1,%a) Rolls on the floor laughing. elseif ($3 == !ffs) mta.text $1 $mta.nick($1,%a) exclaims at the top of his voice, FOR SAKE! elseif ($3 == !boom) mta.text $1 $mta.nick($1,%a) exploded in a blaze of glory! elseif ($3 == !drown) mta.text $1 $mta.nick($1,%a) is sleeping with the fishies. elseif ($3 == !cwin) mta.text $1 Cops Win! Mode Changed to Last Man Standing! elseif ($3 == !rwin) mta.text $1 Robbers Win! Mode Changed to Last Man Standing! elseif ($3 == !enemy) mta.text $1 Anyone see any Enemys? elseif ($3 == !win) mta.text $1 $mta.nick($1,%a) Wins and Jumps around in joy! elseif ($3 == !grats) mta.text $1 $iif((!$4),What? No Grats? You guys suck!,Congratulations $mta.nick($1,%a) $+ !) elseif ($3 == !gg) mta.text $1 Good Game Everyone! elseif ($3 == !gr) mta.text $1 Good Race Everyone! elseif ($3 == !suck) mta.text $1 $mta.nick($1,%a) Sucks ass. elseif ($3 == !donkey) mta.text $1 Who sucks Donkey Dick? $mta.nick($1,%a) Sucks Donkey Dick! elseif ($3 == !fu) mta.text $1 $iif((!$4), You., You and Everyone that looks like you $mta.nick($1,%a) $+ !) }
  17. i aint bothered please say if its wrong i wanna learn more if you are on about mine ?
  18. right this is what i come up with :- you can set as many adverts as you want and they show a random one every 5 mins so it doesnt flood the chat box let me know how you go on any probs post here. !addadvert !startads !stopads on *:SIGNAL:mta.command { if ($3 == !addadvert) { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Level if ($4 == $null) mta.pm $1 $2 Error: !addadvert <advert> else { if ($mta.level($1,$2) >= 5) { !writeini -n adverts.ini advert $calc($slr.adverts($1) + 1) $4- !writeini -n adverts.ini adverts total $calc($slr.adverts($1) + 1) mta.pm $1 $2 Advert Added Correctly } } } elseif ($3 == !startads) { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Level else { !writeini -n adverts.ini adverts ads start .timerads 0 300 slr.advertstime $1- mta.pm $1 $2 Succes In Starting The Ads } } elseif ($3 == !stopads) { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Level else { !writeini -n adverts.ini adverts ads stop mta.pm $1 $2 Succes In Stopping The Ads } } } alias slr.adverts !return $iif($readini(adverts.ini,adverts,total) == $null,0,$v1) alias slr.advertstime { var %a = $rand(0,$slr.adverts($1)) var %b = $readini(adverts.ini,adverts,ads) if (%b == start) { mta.text $1 Advert: $readini(adverts.ini,advert,%a) } }
  19. make a alias that writes all the maps as dm i have one but its for my script that only uses ini's and i dunno where it saves it for prs. This Is what i come up with please correct if i am wrong thanks. on *:SIGNAL:mta.command: { if ($3 == !setallmodes) || ($3 == !setallmode) slr.addallmodes $1- } alias slr.addallmodes { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect privileges else { if ($4 == race) { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Admin Level. if ($mta.level($1,$2) >= 5) { slr.addmapmoderace $1- mta.pm $1 $2 Processing All Maps As Race .timer 1 5 mta.pm $1 $2 All Maps Have Now Been Processed As Race } } else { if ($4 == dm) || ($4 == deathmatch) { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Incorrect Admin Level. if ($mta.level($1,$2) >= 5) { slr.addmapmodedm $1- mta.pm $1 $2 Processing All Maps As Deathmatch .timer 1 5 mta.pm $1 $2 All Maps Have Now Been Processed As Deathmatch } } else mta.pm $1 $2 Error !addmode } } } alias slr.addmapmoderace { var %a = 0 while (%a <= $mta.races($1)) { if ($mta.races($1,%a)) { !hadd prsstats mode $+ %a Race } inc %a } } alias slr.addmapmodedm { var %a = 0 while (%a <= $mta.races($1)) { if ($mta.races($1,%a)) { !hadd prsstats mode $+ %a Deathmatch } inc %a } } but i think you have to change the prs.mode alias to read the file diffrernt as the maps are saved by id how i do it so.... alias prs.mode !return $iif($hget(prsstats,mode $+ $mta.races($1,$mta.race($1))) == $null,Race,$v1) i admit i am no expert with writing hash files so if its wrong i apoligise
  20. how many different adverts do you want ?
  21. thats what i was meaning by saying its pointlesss
  22. if ($mta.level($1,$2) >= 0) means if the player level is greater than or equal to 0 then it will work, so all the players with no level can do the command aswell as the admins. which is kinda pointless lol
×
×
  • Create New...