Guest Posted April 8, 2005 Share Posted April 8, 2005 Is it possible to create a script that forces people to login to play on the server i created, they'll have to ask me for a pass and login and then they must be registred in the "database" to access the server. If there already is a script like this please post a working link to it Link to comment
Si|ent Posted April 8, 2005 Share Posted April 8, 2005 Look in the addons section, mtama grs thread, it includes a login system. You may also be able to find a snippet that deals solely with this if you dont require any of the other reatures. Again, addons section, mtama scripting thread. Link to comment
Oli Posted April 8, 2005 Share Posted April 8, 2005 This sounds like a passworded server would do. Link to comment
{SB}Killer Posted April 8, 2005 Share Posted April 8, 2005 I think u should ask Vincent on TTH clan server he has some sql based script and himself doesnt doesnt use GRS . GRS is no good i suppose but how do i know i dont use them so get hold of that guy. Link to comment
MrJax Posted April 8, 2005 Share Posted April 8, 2005 What has a server password got to do with sql? ....GRS IS very very good, why don't you try making something so complex Link to comment
darkdreamingdan Posted April 9, 2005 Share Posted April 9, 2005 on *:SIGNAL:mta.join:{ if ($readini($grs.dir $+ options.ini,main,serverpassword) != $null) { mta.msg $1 $2 A gangwar is in progress, please enter the password by typing /msg gw . You will be kicked in 20seconds $+(!.timer,$1,.,$2) 1 30 mta.kick $1 $2 } } on *:SIGNAL:mta.part:{ $+(!.timer,$1,.,$2) off } on *:SIGNAL:mta.pm:{ if ($3 == gw) { if ($4 == on) { if (($5 != $null) && ($5 != on) && ($5 != off)) { if ($mta.level($1,$2) >= 4) { mta.say $1 Server passworded !writeini " $+ $grs.dir $+ options.ini" main serverpassword $5- } else mta.msg $1 $2 Insufficent privileges } else mta.msg $1 $2 Invalid password } elseif ($4 == off) { if ($5 == $readini($grs.dir $+ options.ini,main,serverpassword)) { if ($mta.level($1,$2) >= 4) { mta.say $1 Server unpassworded !remini " $+ $grs.dir $+ options.ini" main serverpassword } else mta.msg $1 $2 Invalid password } else mta.msg $1 $2 Insufficent privileges } elseif ($4 == $readini($grs.dir $+ options.ini,main,serverpassword)) { mta.msg $1 $2 ' $+ $mta.name($1,$2) $+ ', you have logged into the gangwar $+(!.timer,$1,.,$2) off } else mta.msg $1 $2 Syntax: /msg gw } } THere we go.. wrote that into the forum box.. and its untested.. but should be ok Commands: /msg gw on - Admin level 4+ /msg gw off - Admin level 4+ /msg gw - logs u in Edit: Mike.. lol.. just beat me ... but ures wont work on more than 1 server at once very well Link to comment
{SB}Killer Posted April 18, 2005 Share Posted April 18, 2005 lol forgot about that 1 LOL u can say that again LOL and dude u cant force people to regiter on server LOL its not ethical but u can add apart where if the person is not registered it kicks him and than he would have to register, you know the login part where it says welcome and stuff and says to register your name in that part add a mta.kick if he doesnt login with 40 seconds that will teach people to register name LOL i might make such a small change and give it to u but right now these days busy so wont be working on scripts .. but ask FMJ oli or some other scripter they can add that part easily.. Link to comment
Recommended Posts