Jump to content

MTA:SA General Use Scripts | Final Version!


Tommis

Recommended Posts

  • Replies 382
  • Created
  • Last Reply

Top Posters In This Topic

Hey,

x14 is released! Many new features like Top time and RPG (!rpg on). When you load your version it should automaticly update. Enjoy! Also, any old bugs were fixed. Type "!commands" for all the commands, new ones too!

Cya,

[XE]Tommis

Link to comment

alias gus.rpgwin {
 %players = $mta.server($1).players
 %rank = $mta.rank($1,$2)
 if (%rank == 1) {
   if (2 >= %players) {
     mta.text $1 $mta.nick($1,$2) has beaten %players Players $+ ! (Rank: First $+ ) (Money Earned: $chr(36) $+ $calc(30 * %players) $+ )
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(30 * %players))
   }
 }
 elseif (%rank == 2) {
   if (3 >= %players) {
     mta.pm $1 $2 You Came Second! (Money Earned: $chr(36) $+ $calc(25 * %players) $+ )
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(25 * %players))
   }
 }
 elseif (%rank == 3) {
   if (4 >= %players) {
     mta.pm $1 $2 You Came Third! (Money Earned: $chr(36) $+ $calc(30 * %players) $+ )
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(15 * %players))
   }
 }
 elseif (%rank == 4) {
   if (5 >= %players) {
     mta.pm $1 $2 You Came Fourth! (Money Earned: $chr(36) $+ $calc(10 * %players) $+ )
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(10 * %players))
   }
 }
}

alias gus.rpgwin {
 var %a = $mta.server($1).players, %b = $mta.rank($1,$2)
 if (%a > %b && %b isnum 1-4) {
   var %c = $iif(%b == 2,Second!,$iif(%b == 3,Third!,Fourth!)), %d = $iif(%b == 1,30,$iif(%b == 2,25,$iif(%b == 3,15,10)))
   $iif(%b == 1,mta.text $1 $mta.nick($1,$2) has beaten %a Players $+ ! (Rank: First $+ ),mta.pm $1 $2 You Came %c) (Money Earned: $chr(36) $+ $calc(%d * %a) $+ )
   !writeini -n $+(",$scriptdirRPG.ini,") CASH $mta.nick($1,$2) $calc($gus.cash($1,$2) + $calc(%d * %a))
 }
}

alias gus.cash {
 if ($readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)) != $null) !return $readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2))
 else !return 0
}

alias gus.cash !return $iif($readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)),$v1,0)

:wink:

Link to comment

Yes,

I know jax, me and kev didnt have time to make it better. Im stuck workin on UR Rumble scripts with Mount and kev and smartie are workin on ssome C++ and php thing witch i cant say ;) It works though :D

**Napsk, u cant download it directly here Http://www.mta-xe.com/gus/update or u can just look in the automatic UPDATE that starts every time u start that admin pannel or load GUS. :D

Have Fun,

[XE]Tommis

Link to comment

used !rpg on ?

nice tommis

few suggestions ..

- can the pingcheck also be activated on player connect

- the stats on start of level are quitte nice .. but not when 3/4 of maps are called unnamed (and when you get the same results)

- the !rpg .. seems to go off after a while .. can it stay on .. how .. where ??

maybe more later :P

tnx .. looks good so far

Edited by Guest
Link to comment

small bug found (credits to gamingkray for finding it :D )

[21:25] GaMiNgKrAzY: coz how much cash u got

[21:25] CoZ: !cash

[21:25] CoZ's Cash: $500670

[21:25] GaMiNgKrAzY: !cash

[21:25] GaMiNgKrAzY's Cash: $4985457

[21:25] GaMiNgKrAzY: lol

[21:25] CoZ: how the .. :D

[21:25] GaMiNgKrAzY: !give coz -4549789

[21:25] GaMiNgKrAzY gave CoZ $-4549789

[21:25] GaMiNgKrAzY: just put minus

[21:26] GaMiNgKrAzY: !cash coz

[21:26] CoZ's Cash: $-4049119

[21:26] GaMiNgKrAzY: haha

[21:26] GaMiNgKrAzY: i can take money :P

[21:26] * CoZ died. (Rank: 3rd Time: 02:37:985)

[21:26] CoZ: !cash

[21:26] CoZ's Cash: $-4049119

[snip]

[21:26] CoZ's Cash: $995950881

[21:26] GaMiNgKrAzY: !cash

[21:26] GaMiNgKrAzY's Cash: $-990464754

[21:26] CoZ: :D

[21:26] * Silverwing died. (Rank: 3rd Time: 03:13:89

[21:26] CoZ: roflmao

[21:26] Silverwing: !cash

[21:26] Silverwing's Cash: $0

[21:26] Silverwing: lol

[21:26] * Silverwing respawned.

[21:27] GaMiNgKrAzY: !give coz -1000000000000

[21:27] GaMiNgKrAzY gave CoZ $-1000000000000

[21:28] GaMiNgKrAzY: !cash

[21:28] GaMiNgKrAzY's Cash: $999009535246

[21:28] CoZ: !give g -98941894945641564654654564

[21:28] CoZ gave GaMiNgKrAzY $-9894189494564

[21:28] CoZ: :D

[21:28] GaMiNgKrAzY: lol

[21:28] GaMiNgKrAzY: damn you

[21:28] CoZ: !cash

[21:28] CoZ's Cash: $98941894945640570000000000

[21:28] GaMiNgKrAzY: !cash

[21:28] GaMiNgKrAzY's Cash: $-98941894945640570000000000

[21:28] CoZ: _O- _O-

oh and ..

[21:59] Max Ping Set to: -20ms

[21:59] CoZ: wanna do a mass kick

[21:59] CoZ: !pingcheck

[21:59] * GaMiNgKrAzY kicked. (86.138.9.198)

[21:59] Kicking GaMiNgKrAzY - Ping: 56 - Max Ping: -20

[21:59:32] KICK: 'CoZ' kicked from server by Remote Admin 'coz' (ID: 0)

[21:59:32] ADMINCHAT: coz: Kicking CoZ - Ping: 12 - Max Ping: -20

[21:59:33] ADMINCHAT: coz: Checking for pings over -20ms

oh , thnx .. i found

set %rpg off and changed it to on ;)

can the report_stats_map

- have a on/off switch

( besides the - dont be activated when map is called 'unknown' )

dang i need to learn mirc scripting :D

oh .. and i changed

     mta.text $1 $mta.nick($1,$2) You beat %players Players $+ ! (Rank: First $+ ) (Money Earned: $chr(36) $+ $calc(50 * %players) $+ )
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(50 * %players))

to

      mta.text $1 $mta.nick($1,$2) You came first out of %players Players $+ ! (Rank: First $+ ) (Money Earned: $chr(36) $+ $calc(50 * %players) $+ )
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $gus.add($gus.cash($1,$2),$calc(50 * %players))

when playing with to players it would say you beat yourself ... well dunno bout you , but i dont do that while playing with others .. (i know .. bad pun .. )

Link to comment

HI! I have one problem, i can' t make an admin form my server, i mad 3 admins already, but 4. admin i can't make! I typed ALL wright, i checked it all thousand of times, i think it's better, i post here admins.ini fail. (Sorry for terrible english)

[ADMIN]
(GTx)Nigga=10
(GTx)Roka=10
(GTx)Yakudzza=10
[ultra]~Din=10
[sET]
SET=1
[iP]

and there is the original mtaserver.txt where i type admin's

# Admin
# Required: Yes
# 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 Default password 5
Admin (GTx)Roka XXXXXX 5
Admin (GTx)Nigga XXXX 5
Admin (GTx)Yakudzza XXXXX 5
Admin [ultra]~Din XXXXXX 5

The problem is with player [ultra]~Din, when he goes in game, types rcon_login password, he logs in like admin leveled 5, but when he types !level, then he have level 1. In admin.ini (GUS) is typed that he is level 10... WTF? Btw, i forgot, he cannot change map mute and other admin things. An user :o, there is nick Nigga, but when i post it here, there nick is :o...

Edited by Guest
Link to comment
Yes,

I know jax, me and kev didnt have time to make it better. Im stuck workin on UR Rumble scripts with Mount and kev and smartie are workin on ssome C++ and php thing witch i cant say ;) It works though :D

**Napsk, u cant download it directly here Http://www.mta-xe.com/gus/update or u can just look in the automatic UPDATE that starts every time u start that admin pannel or load GUS. :D

Have Fun,

[XE]Tommis

Didnt even notice my name is in there LOL.... anyway i need to speak to Kev :P

Tommis is good at keeping his gob shut :roll: lol

Link to comment

Hey,

 elseif ($3 == !ban) {
   if ($gus.level($1,$2) >= 7) {
     if (%a == $2) mta.pm $1 $2 Error - You can't ban yourself.
     elseif (%a == -1) mta.pm $1 $2 Error - Absent ID
     elseif ($gus.level($1,%a) >= $gus.level($1,$2)) mta.pm $1 $2 Error - Can't ban player with same or higher level.
     else {
       mta.text $1 ' $+ $mta.nick($1,%a) $+ ' is banned by admin $mta.nick($1,$2) $+ , $iif($5,Reason: $5-,No Reason.)
       mta.ban $1 %a
       !writeini -n " $+ $scriptdir $+ bans.ini" IPS $mta.nick($1,%a) $mta.ip($1,%a)
       !writeini -n " $+ $scriptdir $+ bans.ini" BANNED $mta.nick($1,%a) 1
       !writeini -n " $+ $scriptdir $+ bans.ini" DETAILS $mta.nick($1,%a) date: $date $+ , time: $time($gmt) $+ , by $mta.nick($1,$2)
       if ($5) !writeini -n " $+ $scriptdir $+ bans.ini" REASONS $mta.nick($1,%a) $5-
       if (($readini($scriptdir $+ bans.ini,SUBNETS,$gettok($mta.ip($1,%a),1-2,46))) && ($mta.nick($1,%a) !isin $readini($scriptdir $+ bans.ini,SUBNETS,$gettok($mta.ip($1,%a),1-2,46))) && ($numtok($readini($scriptdir $+ bans.ini,SUBNETS,$gettok($mta.ip($1,%a),1-2,46)),32) <= 3)) !writeini -n " $+ $scriptdir $+ bans.ini" SUBNETS $gettok($mta.ip($1,%a),1-2,46) $readini($scriptdir $+ bans.ini,SUBNETS,$gettok($mta.ip($1,%a),1-2,46)) $+ , $mta.nick($1,%a)
       else !writeini -n " $+ $scriptdir $+ bans.ini" SUBNETS $gettok($mta.ip($1,%a),1-2,46) $mta.nick($1,%a)
     }
   }
   else mta.pm $1 $2 Error - you must be at least level 7 to use this command.
 }

If u look closely it does.

*if $5* = If there is a reason..

Cya,

[XE]Tommis

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...