Jump to content

Cube

Members
  • Posts

    211
  • Joined

  • Last visited

Everything posted by Cube

  1. Cube

    MTAMA Scripting

    Of coure Oli but admin that server saw me may if I sellte such script which avoid clone kicker (only one IP) it he place this script on his serv and I can play for my friend together.
  2. Cube

    MTAMA Scripting

    Yes, i know..and my English.. but i don't know.. because this not mine scripts. I have to give admin other server (i am not there admin) such scripts which enabled connect to server two person from one IP adress (i have internal IP, and i want play in one server with me friend from my net). Admin that server has such scripts witch permit connect only one person fron one IP (and I and me friend cannot play together)(this scripts is probably clones kicker). I want such script (second) witch avoid clones kickes for my IP adress (and I with me friend can play together) ?? Can you help me ?? Ahh.. sorry for my English..
  3. Cube

    MTAMA Scripting

    Yes the first scripts it clone kicker .
  4. Cube

    MTAMA Scripting

    If I have a script which it's possible connect only one person from one IP address (reason: internal IP). It is possible in second script which enabled connect more then one person from selfsame IP, but I don't removed a first??
  5. Cube

    MTAMA Scripting

    If I have a script which it's possible connect only one person from one IP address (reason: internal IP). It is possible in second script which enabled connect more then one person from selfsame IP, but I don't removed a first?
  6. Cube

    MTAMA Scripting

    fastphp Try this: if ($3 == !rang || $3 == !status || $3 == !level ) { if ( %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.say $1 $mta.name($1,$2) - Rang: Server Admin } if (ZC isin $mta.name($1,$4) ) { mta.say $1 $mta.name($1,$4) - Rang: Clan Member } elseif (ZC isin $mta.name($1,$2) ) { mta.say $1 $mta.name($1,$2) - Rang: Clan Member } } it should work.
  7. Cube

    MTAMA Scripting

    Ok Harry but when i write !warnings 0 server wite <#Cube(RP)*: 2nd warning. 1 more warning and you will be kicked.> ?? I have so on me server: #Cube(RP)*: !warn <#Cube(RP)*: Syntax - !warn > #Cube(RP)*: !warnings <#Cube(RP)*: Syntax - !warn > #Cube(RP)*: !warnings 0 <#Cube(RP)*: 2nd warning. 1 more warning and you will be kicked.> #Cube(RP)*: !warn <#Cube(RP)*: Syntax - !warn > #Cube(RP)*: !erasewarn #Cube(RP)* #Cube(RP)*: !erasewarn <#Cube(RP)*: Syntax - !warn > ?? I don't know what is wrong..??
  8. Cube

    MTAMA Scripting

    Ahhh... this scripts (all version) doesn't work...why? Oli, do you know why.. alias mta.join { elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) { mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2) mta.kick $1 $2 } ;$1 = Server ;$2 = Player ID } alias mta.text { elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.warn $1- } elseif ($3 == !warnings) { if ($4 != $null) { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { mta.say $1 $mta.name($1,$4) has been warned 1 time. } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { mta.say $1 $mta.name($1,$4) has been warned 2 times. } else { mta.say $1 $mta.name($1,$4) has been warned 0 times. } } else { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) { mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time. } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) { mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times. } else { mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times. } } } elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { if ($4 != $null) { mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4 remini "MTAwarn.ini" main $4 remini "MTAwarn.ini" joinkick $4 remini "MTAwarn.ini" reasons $4 } else { mta.say $1 Syntax: !erasewarn } } alias mta.warn { if ($4 != $null) { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5- writeini "MTAwarn.ini" main $mta.name($1,$4) 2 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. writeini "MTAwarn.ini" main $mta.name($1,$4) 2 } } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye! mta.kick $1 $4 writeini "MTAwarn.ini" main $mta.name($1,$4) 3 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye! mta.kick $1 $4 writeini "MTAwarn.ini" main $mta.name($1,$4) 3 } } else { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5- writeini "MTAwarn.ini" main $mta.name($1,$4) 1 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. writeini "MTAwarn.ini" main $mta.name($1,$4) 1 } } } else { mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn } } ;$1 = Server ;$2 = Player ID ;$3- = Text } When I write for example !warn 0 server write 1st warning. 2 more warnings and you will be kicked. when I write !warnings server write Syntax - !warn , and when I write !erasewarn Cube server write Syntax - !warn , WHY ?? And !warn can write each players and not only admin , why ??
  9. Cube

    MTAMA Scripting

    Hi I have problem with this scripts: alias mta.join { elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 3 ) { mta.say $1 $mta.name($1,$2) $+ : Access denied - exceeded warn quota writeini "MTAwarn.ini" joinkick $mta.name($1,$2) $mta.ip($1,$2) mta.kick $1 $2 } ;$1 = Server ;$2 = Player ID } alias mta.text { elseif (($3 == !warn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { mta.warn $1- } elseif ($3 == !warnings) { if ($4 != $null) { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { mta.say $1 $mta.name($1,$4) has been warned 1 time. } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { mta.say $1 $mta.name($1,$4) has been warned 2 times. } else { mta.say $1 $mta.name($1,$4) has been warned 0 times. } } else { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 1 ) { mta.say $1 $mta.name($1,$2) $+ : you have been warned 1 time. } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$2) ) == 2 ) { mta.say $1 $mta.name($1,$2) $+ : you have been warned 2 times. } else { mta.say $1 $mta.name($1,$2) $+ : you have been warned 0 times. } } } elseif (($3 == !erasewarn) && %isadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] == true ) { if ($4 != $null) { mta.say $1 $mta.name($1,$2) $+ : Removed warnings on $4 remini "MTAwarn.ini" main $4 remini "MTAwarn.ini" joinkick $4 remini "MTAwarn.ini" reasons $4 } else { mta.say $1 Syntax: !erasewarn } } alias mta.warn { if ($4 != $null) { if ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 1 ) { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. Reason: $5- writeini "MTAwarn.ini" main $mta.name($1,$4) 2 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 2nd warning. 1 more warning and you will be kicked. writeini "MTAwarn.ini" main $mta.name($1,$4) 2 } } elseif ( $readini( "MTAwarn.ini", main, $mta.name($1,$4) ) == 2 ) { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Reason: $5- $+ . Goodbye! mta.kick $1 $4 writeini "MTAwarn.ini" main $mta.name($1,$4) 3 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 3rd and final warning. Goodbye! mta.kick $1 $4 writeini "MTAwarn.ini" main $mta.name($1,$4) 3 } } else { if ($5 != $null) { mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. Reason: $5- writeini "MTAwarn.ini" main $mta.name($1,$4) 1 writeini "MTAwarn.ini" reasons $mta.name($1,$4) $5- } else { mta.say $1 $mta.name($1,$4) $+ : 1st warning. 2 more warnings and you will be kicked. writeini "MTAwarn.ini" main $mta.name($1,$4) 1 } } } else { mta.say $1 $mta.name($1,$2) $+ : Syntax - !warn } } ;$1 = Server ;$2 = Player ID ;$3- = Text } It working, but !warn can write all players and not only admin, why? ??
  10. Cube

    MTAMA Scripting

    Ok but i have this: if ($mta.name($1,$2) == $mta.name($1,$2)) { if ($readini("Alias.ini",IP,$mta.ip($1,$2))) { if ($mta.name($1,$2) $+ , !isin $readini(Alias.ini",IP,$mta.ip($1,$2)) $+ ,) { writeini -n "Alias.ini" IP $mta.ip($1,$2) $readini("Alias.ini",IP,$mta.ip($1,$2)) $+ , $mta.name($1,$2) } } else { writeini -n "Alias.ini" IP $mta.ip($1,$2) $mta.name($1,$2) } }
  11. Cube

    MTAMA Scripting

    HI, what it dosn't work: alias mta.text { if ($3 == !aliases) { if ($4 != $null) { if ($readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4)))) { mta.say $1 Aliases used by $mta.name($1,$mta.getid($1,$4)) $+ : $readini("Alias.ini",IP,$mta.ip($1,$mta.getid($1,$4))) } } else { mta.say $1 Syntax: !aliases } } When I write:!aliases server write Syntax: !aliases , and when I write !aliases 0 server nothing write... Why ?
  12. Cube

    MTAMA Scripting

    How make such script to for example: player #Cube(RP)* can join to server only than when his IP = xxx.xxx.xx.xx ?? Can you help me ??
  13. Cube

    MTAMA Scripting

    Hi all, i cannot write scripts... but i tried and.... alias mta.kill { if (($mta.kills($1,$3) == 30) && ($mta.deaths($1,$2) == 00)) mta.say $1 $mta.name($1,$2) you are suspected use cheats (reason: 30 kills and 0 deaths), if I am mistaken , sorry ! mta.kick $1 $2 } ..and nothing.. this doesn't work ! Can you help me ??
  14. Cube

    MTAMA Scripting

    Ok Oli, thx --> i will wait
  15. Cube

    MTAMA Scripting

    Oli, if you finish you will send me it [email protected] ok?? Thx.
  16. Cube

    MTAMA Scripting

    Thx OLI working !!
  17. Cube

    MTAMA Scripting

    HI, Can you make result for !stats ? Example: Overall Kills: 5 - Overall Deaths: 3 - Result: 2 because Kills - deaths = result 5 - 3 = 2 Do you know how do this ??
  18. Cube

    MTAMA Scripting

    Upss it up not is scripts lol if i write !stats is example: Name: Unknown - Kills: - Deaths: - Ping: - Overall kills: 0 - Overall deaths: 0 - Ratio: 0 - Online: 10 sec - Status: Out game - IP: 192.168.10.98 Why this Name: Unknown - Kills: - Deaths: - Ping: - not working ??
  19. Cube

    MTAMA Scripting

    HI, Why this not working: [color=green]alias mta.text { if (!stats iswm $3) { if ($4 isnum) mta.say $1 Name: $mta.name($1,$4) - ID: $4 - Ping: $mta.ping($1,$4) - Kills: $mta.kills($1,$4) - Deaths: $mta.deaths($1,$4) - Overall kills: $calc($readini("MTAstats.ini",kills,$mta.name( $1 , $2 ))) - Overall Deaths: $calc($readini("MTAstats.ini",deaths,$mta.name( $1 , $2 ))) - Ratio: $round( $calc($readini("MTAstats.ini",kills,$mta.name( $1 , $2 )) / $readini("MTAstats.ini",deaths,$mta.name( $1 , $2 ))) , 2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.status($1,$4) == 1,Out Game,In Game) - IP: $mta.ip($1,$2) else mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) -Overall kills: $calc($readini("MTAstats.ini",kills,$mta.name( $1 , $2 ))) - Overall Deaths: $calc($readini("MTAstats.ini",deaths,$mta.name( $1 , $2 ))) - Ratio: $round( $calc($readini("MTAstats.ini",kills,$mta.name( $1 , $2 )) / $readini("MTAstats.ini",deaths,$mta.name( $1 , $2 ))) , 2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.status($1,$4) == 1,Out Game,In Game) - IP: $mta.ip($1,$2) } [/color] [code][color=green]alias mta.kill { set %kills $calc($readini("MTAStats.ini",kills,$mta.name( $1 , $3 )) + 1) set %deaths $calc($readini("MTAStats.ini",deaths,$mta.name( $1 , $2 )) + 1) writeini -n "MTAStats.ini" kills $mta.name( $1 , $3 ) %kills writeini -n "MTAStats.ini" deaths $mta.name( $1 , $2 ) %deaths unset %kills unset %deaths }[/color] if i write !stats is example: Name: Unknown - Kills: - Deaths: - Ping: - Overall kills: 0 - Overall deaths: 0 - Ratio: 0 - Online: 10 sec - Status: Out game - IP: 192.168.10.98 Why this Name: Unknown - Kills: - Deaths: - Ping: - not working ?? [/code]
  20. Cube

    MTAMA Scripting

    ok thx OLI, i come back tommorow>
  21. Cube

    MTAMA Scripting

    HI, [FMJ]Oli , do you know how make !stats with total kills and total deaths ??
  22. Cube

    MTAMA Scripting

    Thenks Aeron ! I have 1 question hehe again. How make !stats with total kills and total deaths --> mta.name - kills - deaths - Total kills - total death ??
×
×
  • Create New...