-
Posts
976 -
Joined
-
Last visited
Everything posted by Scooby
-
Sure, just open 'admin.ini' and change the details to ur name.
-
why dont u just use a script already written? like mine i have to go to work now.. i'll let u decide. if not, then ok i will take a look at ur script. but u will be better off sending it me on msn, coz theres parts from other areas in ur script that need checking/changing. have a think about it. i'll check ur reply after work.
-
i can find the error.. the whole script is 1 big error. u want me to write u a complete bet/win system that actually works? hmmm i did that already, u could always use my script... at least it works and i can edit easily enough for u.
-
if ($3 == !instructions) mta.text $1 $iif($readini($scriptdirinstructions.ini,mod,$replace($mta.race($1),$chr(32),)) == $null,No Details Stored,Current Map: $mta.race($1) - Details: $v1)
-
Thx, but to be honest, the whole script is full of bugs, and i cant really see what ur trying to fix U cant do a payout to a better on the info supplied in that alias. i would imagine that u would have to use some kind of loop to check every player in the server to see if anyone bet on him, then do a payout if they did. and i dont see anything like that in there. if u need this fixing, by anyone on here, u need to post all the relevant info regarding the betting. take this first post of urs for instance: There is an error on 'every' line... sometimes more than just 1 but without seeing how ur bet is stored i cant fix it. sorry
-
Well looking at the snippets u posted, it looks impossible to update one without the other, since u do name and time together, so maybe it's a writing to ini problem, did u check mirc for write errors? invalid paramaters or anything show up? its possible that the . on the name may have messed it up, i know ive read somewhere b4 that certain other characters apart from the obvious, can mess with ini's, but since i dont use them very often i cant really remember. But if this was the case, u would have got an error of some kind. try simulating the circumstances, use a similar or the same name, and set a better time, see what happens. check mirc for errors.
-
Any problems or conflicts with ur other scripts, just let me know and i can change things for u. not a problem, it didnt take me long to make only a few hrs, i just waited as long as i could for people to post their ideas before i uploaded it.
-
I wrote this for the Public Gambling Script earlier Ive modified it so u guys can use it in ur scripts. Its set to mute people for 60 seconds upon use of a banned word. !Banword !Unbanword !banwords Add or Remove words, Its set for Rcon Level 5 admins, But can be changed to how u want it. on *:SIGNAL:mta.command: { if (($3 == !banword) || ($3 == !unbanword)) { pgs.banword $1- } elseif ($3 == !banwords) mta.text $1 There are currently $lines(pgs.banwords.txt) banned words } alias pgs.banword { if ($mta.level($1,$2) < 5) mta.pm $1 $2 Error: Level 5 Admins Only! elseif ($3 == !banword) { if (!$4) mta.pm $1 $2 Error: !banword else { var %a = 1,%b = $lines(pgs.banwords.txt) while (%a <= %b) { if ($4 iswm $read(pgs.banwords.txt,%a)) { mta.pm $1 $2 Error: Word Already Banned! !halt } !inc %a } !write pgs.banwords.txt $4 mta.text $1 $+(',$4,') added to banned words list } } elseif ($3 == !unbanword) { if (!$4) mta.pm $1 $2 Error: !unbanword else { var %a = 1,%b = $lines(pgs.banwords.txt) while (%a <= %b) { if ($4 iswm $read(pgs.banwords.txt,%a)) { !write -ds $+ $4 pgs.banwords.txt mta.text $1 $+(',$4,') removed from banned words list %a = $calc(%b + 2) } !inc %a } if (%a == $calc(%b + 1)) mta.pm $1 $2 Error: $4 Is Not Banned. } } } alias pgs.bannedwords { var %a = 1,%b = $3-,%c = $lines(pgs.banwords.txt) while (%a <= %c) { if ($read(pgs.banwords.txt,%a) iswm %b) { ;punsihment for use of a banned word mta.pm $1 $2 $+(',$read(pgs.banwords.txt,%a),') Is A Banned Word! Muted For 60 Secs mta.mute $1 $2 .timerunmute $+ $2 1 60 mta.unmute $1 $2 %a = %c } !inc %a } } on *:SIGNAL:mta.text: { pgs.bannedwords $1- } If youre unsure how to add this to your existing script, just paste it into a new blank script and load it seperately, it will work just the same.
-
Is it a seperate script? or something you copied and just need adding to GUS? Post ur mta.finish alias and i'll take a look. That script u posted wasnt right or wasnt from mta.finish, ur getting the errors coz brackets are missing ete, and ur using %a when i cant see what u have defined it as. either way, i cant see how u can check everyones bets from just that. Post ur mta.finish alias and we can see better.
-
ahh sorry my bad, i see what ur doing now. so, does it work now?
-
keeping track in the gambling script would mean accessing the data twice, and having 2 sets of checks, (since its already accessed/checked on ur main script). But this could be added into ur existing script, basically where ur script shows u have earned a top time, u just add the lines adding the cash along with a pm. it would be something like this: player gained top time { var %a = $rand(1000,2000) pgs.pm $1 $2 Bonus For Setting Top Time: $ $+ %a pgs.add $mta.nick($1,$2) %a }
-
I know it seems noone is giving u any help here, and im sorry. i need to mention... i still dont see enough checks for duplicte names, u need to add a lot more i can see u do the occasional check but i dont see one for 1st place, on 2nd and 3rd, u only check 1st, etc etc. the way ur doing ur script, after adding the checks, ur script will be 10 times the size
-
I know it seems noone is giving u any help here, and im sorry. i need to mention... i still dont see enough checks for duplicte names, u need to add a lot more ise can see u do the occasional check but i dont see one for 1st place, on 2nd and 3rd, u only check 1st, etc etc. the way ur doing ur script, after adding the checks, ur script will be 10 times the size
-
Ok, Ive started a new topic here since ive made a start on the script. Im still open to ideas b4 the release tho. As of yet, im making the script as a stand alone,but i may be releasing another version later for PRS users, which will have use of the 3 game modes (Race/DM/RS-DM) Added so far: $5000 cash on Join, 2 mins wating time on nick change b4 betting 3 players minimum limit before race betting 30 seconds of betting time before bets are stopped cash earned for race ranks 1-6, (players - rank) * $50 1 bet per race per player. $1000 maximum bet limit payout on winner = bet * (players/2) !cointoss heads/tails !banwords - add / remove any words from a ban file !fine for use of banned words (random fine) payout to player who spots the person swearing etc !transfer - only admins can transfer cash from 1 nick to another PM's on or off for those who dont want to get involved with the script. Im still after more ideas... EDIT: OUT NOW!!! MTA:PGS1.0 OUT NOW Commands -------------- !bet !unbet !bets !cash/!money !cointoss <1-100> !pms on/off !fine !topcash !banwords !betcommands !bethelp !cashcheck Admin Commands --------------------- !transfer !banword !unbanword --------------------------------------------------- The ban word function enables u to ban/unban any words, any players using these words can be fined a random amount by another player if spotted. Please post any bugs or suggestions in this topic. I will be releasing an updated version to work alongside the Public Release Script (MTA-PRS:1.1), which will include betting on DM maps, RS-DM maps, And the existing Race maps. DOWNLOAD BY CLICKING >HERE<
-
ok, i'll get on it. Public Gambling Script 1.0 Coming soon cant make what read what names? u made a votekick, so this shouldnt be too difficult
-
if u dont use -n, after the ini fills up a bit, u will start to get errors. in the help files is says 64k, but i got them a lot sooner than that. so ur best to use it if u know the ini is going to grow.
-
OK, since i just finished updating the PRS1.1, and people are asking for other kinds of cash type scripts. i will make one too. Ive seen a few, none of which seem to work too well. script1: people earn money by betting on the race winners betting can only be done while ur dead people win money by ranks on race finish, i dont think there was anything else they could do. script2: people win money by ranks in races, this money can then be used to buy useless items (freeze - mute - kick) which cant then be used to annoy other racers. i kinda like the idea of betting on race placing, kinda sux that u cant do anything with cash once uve got it tho. i suppose maybe a top cash table for bragging rights but thats about all. im not that keen on buying freeze's, kicks or mutes, kinda ruins the game for other players. Im open to ideas on what u guys want in this tho. i mean, are we just talking a betting script? eg: where players have cash and can bet on race winner bet must be placed within the first 30 secs of the race, bets not to exceed a certain amount. since there is no secure way of keeping ur cash, only admins can give cash from one player to another. (that way people cant steal it) maybe some kind of top 3 cash table. let me know if this is what u want... or tell me ur ideas
-
actually looking at it closer... its all wrong lol i'll have a look and fix it for u soon if u want to try, just remove the the $mta.ip($1,$2) parts out of the !Writeini lines
-
ul have to post more of the script, i found a couple of bugs, although the script seems to be crap. the poor people with dynamic ip's or people who's ip changes every so often, will never have any money since the cash is stored on IP's. anyway, heres the fix: elseif (%rank == 3) { if (3 <= %players) { mta.text $1 $mta.nick($1,$2) You Came Third! (Money Earned: $chr(36) $+ $calc(15 * %players) $+ ) !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $mta.ip($1,$2) $gus.add($gus.cash($1,$2),$calc(15 * %players)) } }
-
1.1 released. please report any bugs u find, on this thread. thx updates listed on first post along with the download.
-
u cant remove the word from the server.
-
ok well u can try this: elseif ($3 == !money && %rpg == on) { if ($4 == $null) mta.text $1 $mta.nick($1,$2) $+ 's Cash: $chr(36) $readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)) elseif (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a) $+ 's Cash: $chr(36) $+ $readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,%a)) } this should work now, as it was before, u had to add the exact name, eg: !cash jb_frozen, plus it had other errors.
-
lol well ur VK script is hardly in the same league
-
well congrats if u finally got it to work. u should think about using while loops this can cut down on size quite a lot, also, if ur going to use an identifier lots of times in an alias, store it as a variable, it wil make the script faster and much neater to read. if its working, u should post the finished product. in full
