blubb Posted October 25, 2008 Share Posted October 25, 2008 how can i make that i can freeze someone with !f , mute with !m , !k for kick and so on? I just need shortcuts for the commands Link to comment
wannaknow Posted October 25, 2008 Share Posted October 25, 2008 how can i make that i can freeze someone with !f , mute with !m , !k for kick and so on? I just need shortcuts for the commands If u would check the lines from all the commands: there stands if ($3 == !kick) { just make from if if ($3 == !kick) || ($3 == !k) { Link to comment
blubb Posted October 26, 2008 Share Posted October 26, 2008 another question is it possible to make that admins can mute/freeze players with the same level? Link to comment
wannaknow Posted November 3, 2008 Share Posted November 3, 2008 Yes it is There stand in the !kick line (dont know where) if ($prs.level($1,$2) > $prs.level($1,%a) { When you make from it if ($prs.level($1,$2) >= $prs.level($1,%a) { it must work You can edit this in all command like freeze kick mute ban unmute unfreeze But then you need to edit that rule from prs.level Link to comment
wannaknow Posted November 3, 2008 Share Posted November 3, 2008 is it a possible to add command like this: !end - which ends currend race, and makes all things like at real finish of any player. I mean, it's not !new command to start randomly, but to end race and show the mta screen with selection od next races to being nominate. Is not possible Link to comment
wannaknow Posted November 3, 2008 Share Posted November 3, 2008 Scooby can you tell me the explantation of the !top command i dont fully understand, What it does and how it works? Link to comment
Scooby Posted November 4, 2008 Author Share Posted November 4, 2008 Scooby can you tell me the explantation of the !top command i dont fully understand, What it does and how it works? ok in short, when u do !top , 'bla' is sent to the alias as $4 (im sure u know this ) then the $findtok line checks which it is finding the 'top' of to make sure it exists. if it does, it then sets %1 %2 %3 and %x %y %z as variables, these are gonna be ranks 1 2 3 and the names that go with the ranks. then the loop starts... then theres a bunch of lines which define %b on each cycle of the loop - this is what ur finding the top3 of then theres a few lines that check if %b is better than the current %1 %2 or %3, and if so, puts it in the relative place, then moves the previous stored data to the rank below. finally once the loop is complete, it displays the data. not really sure if this helps u, if u want, i could cut loads out and show u it as a basic version, it just looks a little more complex as it is coz its doing the top 3 of 15 commands. let me know anyway. Link to comment
grauzejs1234 Posted November 5, 2008 Share Posted November 5, 2008 Please help me! where I need copy this script D/programs file/MTA san andreas/server/mods or where??? please help me soon. sorry my English is bad! Link to comment
Scooby Posted November 5, 2008 Author Share Posted November 5, 2008 u need to put all the files in ur mIRC folder. Link to comment
grauzejs1234 Posted November 6, 2008 Share Posted November 6, 2008 u need to put all the files in ur mIRC folder. Ok! But what I need to do next? Please tell me! Link to comment
Scooby Posted November 6, 2008 Author Share Posted November 6, 2008 there is an installation part in the txt file 'prs 1.3 details.txt' if u follow that, changing the info 'mta-prs1.1.mrc' to 'mta-prs1.3.mrc' u should be ok. or try reading this topic a little, it has been explained a few times. if ur still stuck after reading this, post back and tell me how far ur up to. Link to comment
wannaknow Posted November 9, 2008 Share Posted November 9, 2008 Scooby, i still don't understand it. Can you give me a some more basic (easy) script or a little tutorial about how to make it? WannaKnow Link to comment
Scooby Posted November 11, 2008 Author Share Posted November 11, 2008 ok to make it easier for me to explain, i will refer to the top 3 as rank 1,2 and 3 i'll try to explain as easily as possible, just ask if u see something u dont understand alias tops { ;the line below defines all the variables needed for the loop (set to check through 32 players). var %a = 0, var %b, %loop = 32, %1 = 0, %2 = 0, %3 = 0, %x, %y, %z while (%a < %loop) { ;the line below is the variable the loop is checking, this could be anything u want to find the top 3 of. %b = $prs.points($1,%a) ;next we check if there is a player present in the current ID slot in the loop. if ($mta.nick($1,%a) != $null) { ;then we check to see if the players points are more than whats currently stored as rank 1. if (%b > %1) { ;if so, the ranks are moved down and a new rank 1 is added. %3 = %2 | %z = %y | %2 = %1 | %1 = %b | %y = %x | %x = $mta.nick($1,%a) } ;if the players rank wasnt better than rank 1 but is better than rank 2 then, elseif (%b > %2) { ; we dont touch rank 1, but we move rank 2 to rank 3 then add the new rank 2. %3 = %2 | %2 = %b | %z = %y | %y = $mta.nick($1,%a) } ;if the players rank wasnt better than rank 1 or 2 but is better than rank 3 then, elseif (%b > %3) { ; add a new rank 3 %3 = %b | %z = $mta.nick($1,%a) } } ; add 1 to the loop and start again on the next ID slot. !inc %a } ;when the loop is finished display the results in the chat mta.text $1 1st %x %1 if (%y) .timer 1 1 mta.text $1 2nd %y %2 if (%z) .timer 1 2 mta.text $1 3rd %z %3 } Any Questions, just ask and i'll reply asap. Link to comment
wannaknow Posted November 20, 2008 Share Posted November 20, 2008 Yeah. thanks now i understand. But why there is in your alias pgs.bet { this line? !hadd pgscash tbets $+ $mta.nick($1,$2) $calc($hget(pgscash,tbets $+ $mta.nick($1,$2)) + $5) is this for how much cash you have used for bets?? But where it check who have won with the bets? Link to comment
Scooby Posted November 21, 2008 Author Share Posted November 21, 2008 yes, its for the total bets stats per player. The check to see if you won would be in: on *:signal:mta.finish: Link to comment
[UVA]Bart Posted November 21, 2008 Share Posted November 21, 2008 your script brings back many memories to me when a used to annoy u on msn to learn how to script then i made my own and mine and yours are the only 2 good ones out there avaliable to the public still even tho mta race is dead a think /me good times dont see u online right much now scooby where are u hiding lol Link to comment
Scooby Posted November 21, 2008 Author Share Posted November 21, 2008 I'm always around.... somewhere Link to comment
blubb Posted November 22, 2008 Share Posted November 22, 2008 is it possible to make that the script can auto-set the mode of a map? e.g. when there is [DD] oder [DM] in front of the mapname that it sets it automatically as a deathmatch map Link to comment
Scooby Posted November 22, 2008 Author Share Posted November 22, 2008 is it possible to make that the script can auto-set the mode of a map? e.g. when there is [DD] oder [DM] in front of the mapname that it sets it automatically as a deathmatch map sure thats pretty easy, under mta.startrace: add this to the top. if ([DD] isin $mta.race($1) || [DM] isin $mta.race($1)) { !hadd prsstats mode $+ $replace($mta.race($1),$chr(32),$chr(45)) Deathmatch } Link to comment
wannaknow Posted November 22, 2008 Share Posted November 22, 2008 alias xiii.use { if ($xiii.item($1,$2) == mapchange) { if ($4 == $null) { mta.pm $1 $2 Syntax error. !use <mapname> } var %a = $+(*,$4-,*) var %b = $mta.races($1,$mta.races($1,%a)) if (!%b) mta.pm $1 $2 Map not found. else { .write -i nextmap.ini %b .write -i nextmapname.ini $mta.nick($1,$2) mta.pm $1 $2 Mapchange used for %b $+ . Upcoming map: $iif($xiii.nextmap,$v1,%b) hdel xiiistats item $+ $mta.nick($1,$2) } } } When u typ !use it says Mapchange used for 6. Upcoming map: 6. Link to comment
Scooby Posted November 22, 2008 Author Share Posted November 22, 2008 fix it then... i see a few errors Link to comment
wannaknow Posted November 23, 2008 Share Posted November 23, 2008 I dont And can you tell me someyhing about the alias cmd how it saves the alias. When i try to make it it dont work or it save al names (Duplicate them) or het only save 1 name Link to comment
Scooby Posted November 23, 2008 Author Share Posted November 23, 2008 not really sure what ur asking, the alias has a few errors in it, the 'if, elseif,else" is wrong, also the write lines are wrong, u specify -i but dont give a line number to overwrite. if its for then nextmap, then really u only need to set a variable. ie: set %nextmap %b all this stuff is in prs already so im guessing this is for ur own script? Link to comment
wannaknow Posted November 23, 2008 Share Posted November 23, 2008 Yeah, somethin from em somethin you. But by the alias i use isin then when my nick is WannaKnow[NL] and i chane it to WannaKnow it dont write WannaKnow in de alias hash how can i make the scritp it will write WannaKnow (In this case) in it to? On join and on nick? Link to comment
blubb Posted December 18, 2008 Share Posted December 18, 2008 can you make !vote command for immetiately changing the map and not only for next map? and then for example !votenext .... for the next map Link to comment
Recommended Posts