DJScripts Posted July 14, 2007 Share Posted July 14, 2007 Hej DJFrankie here. I have some problems with PRS 1.3 with the command !nextmap. everyone with lvl 4 can use it and they abuse like hell so my question is how can i change the lvl from 4 to 5? And i have some problems with this script: /* ///////////////////////////////////// ////// MTASA:RACE ////// ////// ////// ////// Public ID Script ////// ////// ////// ////// Version 1.0 ////// ////// ////// ////// BY: -|ND|-DJFrankie ////// ///////////////////////////////////// */ on *:SIGNAL:mta.connect: { .timer 1 2 mta.text $1 $pis.version($1) Script Activated } alias pis.getid { var %a = 0 while (%a < %loop) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } } on *:SIGNAL:mta.command: { ;Parameters: ;$1 = Server ;$2 = ID var %a = $iif((!$4),$2,$iif(($pis.getid($1,$4) == $null),$2,$v1)),%race = $replace($mta.race($1),$chr(32),$chr(45)) if ($3 == !id) mta.text $1 $mta.nick($1,%a) 's ID: $2- elseif ($3 == !pmip) mta.pm $1 $2 Your Ip Is: $mta.ip($1,$2) elseif ($3 == !cash) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a) Has Got $s.money($1,%a).- Dollar } elseif ($3 == !idcommands) mta.pm $1 $2 $pis.commands($1) elseif ($3 == !idadmincommands) mta.pm $1 $2 $pis.admincommands($1) } elseif ($3 == !givemoney) { if ($4 && $5 isnum) { if ($s.money($1,$2) >= $5) { mta.text $1 $mta.nick($1,$2) geeft $5 aan $mta.nick($1,%a) $+ ! !writeini -n " $+ $scriptdir $+ mta.rpg.ini" MONEY $mta.ip($1,$2) $calc($s.money($1,$2) - $5) !writeini -n " $+ $scriptdir $+ mta.rpg.ini" MONEY $mta.ip($1,%a) $calc($s.money($1,%a) + $5) } else mta.pm $1 $2 Error - Not Enough Money! } elseif ($4 && $5 == admin && $6 isnum) { if ($gus.level($1,$2) >= 7) { mta.text $1 $mta.nick($1,%a) Gets $6 Dollar The Bank! !writeini -n " $+ $scriptdir $+ mta.rpg.ini" MONEY $mta.ip($1,%a) $calc($s.money($1,%a) + $6) } else mta.pm $1 $2 Error - You need to be level 7 to use this command } else mta.pm $1 $2 Error - Syntax: $3 } on *:SIGNAL:mta.death: { ;Parameters: ;$1 = Server ;$2 = ID mta.text $1 $mta.nick($1,$2) Just Died! ID: $2- } on *:SIGNAL:mta.finish: { ;Parameters: ;$1 = Server ;$2 = ID mta.text $1 $mta.nick($1,$2) Won This Round! ID: $2- } on *:SIGNAL:mta.part: { ;Parameters: ;$1 = Server ;$2 = ID ;$3 = 0/1/2/3 (parted/kicked/banned/timed-out) mta.text $1 $mta.nick($1,$2) ID: $2- Has Left The Server! Reason: $3- } on *:SIGNAL:mta.join: { ;Parameters: ;$1 = Server ;$2 = ID mta.text $1 $mta.nick($1,$2) ID: $2- Has Joined The Server! } alias pis.version !return MTASA:PIS:1.0 alias pis.commands mta.text $1 ID Commands: !id - !pmip - !idmoney - !idbuy - !iditems - !idcommands - !idbuyhelp - !iduse alias pis.admincommands !return ID Admin Commands: !idkick - !idban/unban - !idmute/unmute !idfreeze/unfreeze alias s.money !return $iif($readini($scriptdir $+ mta.rpg.ini,MONEY,$mta.ip($1,$2)),$v1,0) } The !id Command when you type in the server !id it show: DJFrankie 's ID: 0 !id i dont get it why it puts !id behind it when i type !id galghlahg it shows that after the command i think the parameter is doing it and my money script doesnt seem to work somone nows something on that? And the !givemoney command is for gus but i use prs and i now thats mta.level but when i change gus in to mta and 7 into 5 it doesnt work. And another question could it be like that you can type: /pm Admin and then the admin or script gets the password and logs in that you have registert your name or is this not possible whas just wondering well thx all A Greetzz.. DJFrankie Link to comment
Scooby Posted July 14, 2007 Share Posted July 14, 2007 maybe if u tried to learn how to script instead of using other peoples work then u might have a clue what ur doing. i guess not... well if u wrote the script... then surely u know how to fix it. as for MY script, if u want to make it so only level 5's can use it... well thats not rocket science... this is the line: elseif (($3 == !nextmap) && ($prs.level($1,$2) >= $prs.startmap($1))) prs.nextmap $1- im amazed u can write a script like u have, yet u cant edit 1 simple line... elseif (($3 == !nextmap) && ($prs.level($1,$2) >= 5)) prs.nextmap $1- i know u must read some of the other posts too, so why do u ask questions that have been asked before??? And another question could it be like that you can type: /pm Admin and then the admin or script gets the password and logs in that you have registert your name or is this not possible whas just wondering its not possible. as for ur own script... think about the difference between $2 and $2- ur line is: if ($3 == !id) mta.text $1 $mta.nick($1,%a) 's ID: $2- so if $1 is the server ID, $2 is YOUR ID, $3 is !id so u can now see why it says bob 's ID: 3 which will be wrong. u need something like : if ($3 == !id) mta.text $1 $mta.nick($1,%a) $+ 's ID: %a Link to comment
DJScripts Posted July 15, 2007 Author Share Posted July 15, 2007 okay thanks. im not so good with PRS thas why i make my own little command not in PRS and i never change something in PRS so. But still thanks Link to comment
Recommended Posts