Jump to content

help with this


stylo

Recommended Posts

hi i wrote an script but can you guys please help me with this 1 ??

it wont work correctly

on *:SIGNAL:mta.command: {
 var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)),%race = $replace($mta.race($1),$chr(32),$chr(45))
 if ($3 == !recs) mta.text $1 $mta.nick($1,%a) $+ 's recs: $IRC.recs($1,%a)
 if ($3 == !rec) IRC.rec $1 $2 %a $5-
}
alias IRC.recs !return $iif($readini($scriptdir $+ IRCrecs.ini,RECS,$nick),$readini($scriptdir $+ IRCrecs.ini,RECS,$nick)),0)
alias IRC.rec {
 $4-:Reason
 if ($3 == $null) mta.pm $1 $2 Error: !rec 
 elseif ($3 == $2) mta.pm $1 $2 Error: Cannot rec yourSelf
 else {
   !writeini -n " $+ $scriptdir $+ IRCrecs.ini" RECS $mta.nick($1,$2) 1 $+ $calc($iif($hget(IRCrecs,$1) == $null,1,$v1) + $2)
   mta.text $1 $mta.nick($1,$3) has got an rec by $mta.nick($1,$2) $iif($4 != $null,Reason: $4-) 
 }
}

would be glad if you guys can help me

Link to comment

xD i am not nick who had 17 reply need to get the !lol working

i am the other guy..

but i am JB_frozen a.k.a Rob

anyway if you do !rec you give an points to the player who you rec if you like what he did E.G player killed me i do !rec player reason en he get 1 rec just for fun

if he does !recs he can see how many recs he has

can you help me plz?

Link to comment
xD i am not nick who had 17 reply need to get the !lol working

i am the other guy..

but i am JB_frozen a.k.a Rob

anyway if you do !rec you give an points to the player who you rec if you like what he did E.G player killed me i do !rec player reason en he get 1 rec just for fun

if he does !recs he can see how many recs he has

can you help me plz?

so its just a counter?

u do !Rec

it adds '1' to the rec's (whatever 'rec' stands for)

so the player can type !recs and see how many he has?

sounds a bit useless, but yeah i can show u how to do this, u could always modify the warn script, its exactly the same.

eg: !warn would give 1 warning

so all u need do is copy the info needed for the !warn section, also remember to add a new hash in the load and save.

but the main alias would be like this:

alias prs.rec {
 ;$1:Server $2:AdminID $3:PlayerID $4-:Reason
 if ($3 == $null) mta.pm $1 $2 Error: !rec 
 elseif ($3 == $2) mta.pm $1 $2 Error: Cannot '!rec' Self
 elseif ($mta.level($1,$2) <= $mta.level($1,$3)) insuf $1 $2
 else {
   var %a = $prs.recs($1,$3)
   !inc %a
   !hadd prsrecs $mta.nick($1,$3) %a
   mta.text $1 $mta.nick($1,$2) Has Rec'd $mta.nick($1,$3) $iif($4 != $null,Reason: $4-) 
   mta.text $1 $mta.nick($1,$3) $+ 's Rec's: %a
 }
}
alias prs.recs !return $iif($hget(prsrecs,$mta.nick($1,$2)) == $null,0,$v1)

then u would need in mta.command (In Admin commands section):

   elseif ($3 == !rec) prs.rec $1 $2 %a $5-
   elseif ($3 == !recs) mta.text $1 $mta.nick($1,%a) $+ 's Recs: $prs.recs($1,%a)

as u can see the hash is called 'prsrecs'

and thats about it.

ive used 'rec' still not sure about what it is :lol:

but this is a nice universal command, anyone can use it for anything.

just change !rec to whatever.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...