mIRC Home    About    Download    Register    News    Help

Topic Options
#87656 - 20/06/04 06:51 PM Set Script
MuscleCar Offline
Nutrimatic drinks dispenser

Registered: 13/12/03
Posts: 9
Loc: michigan
ok, iam trying to have this script so when some one types !setplayer [ name ] it saves that name in the folder or some thing.. and when some types !players it shows that name that was set,

My code:

on 200:text:!setPlayer*:#: set %player $2-

on *:text:!Players*:#:{
/msg $chan %player
}

Iam not sure why this does not work... If you could help me that would be great! cool
_________________________
Come Visit me at www.warriorsouls.com or irc.pgpn.com -j #}W|S{

Top
#87657 - 20/06/04 09:37 PM Re: Set Script
MuscleCar Offline
Nutrimatic drinks dispenser

Registered: 13/12/03
Posts: 9
Loc: michigan
That top part there, i got there to work with this code here:
on 200:TEXT:!setPlayers*:#: set %players $2-

on *:TEXT:!Players:#:{
/msg $chan Players for the next match are the following,
/msg $chan [ [ %players ] ]
}



how Can I remove %variables? Like this:

on 200:text:!remove*:#:{
/msg $chan %variable has been removed!
}

-thanks
_________________________
Come Visit me at www.warriorsouls.com or irc.pgpn.com -j #}W|S{

Top
#87658 - 20/06/04 11:32 PM Re: Set Script
Fibsi Offline
Ameglian cow

Registered: 11/01/04
Posts: 26
Loc: Germany
Code:
on [color:red]*[/color]:TEXT:*:#:{
 if ($1 == !setplayer) set %player $$2-
 elseif ($1 == !remplayer) unset %player
 elseif ($1 == !player) msg # Player: $iif(%player,$ifmatch,No player set :-\) 
}


check this

Top
#87659 - 21/06/04 12:08 AM Re: Set Script
MuscleCar Offline
Nutrimatic drinks dispenser

Registered: 13/12/03
Posts: 9
Loc: michigan
Cool thanks it works
_________________________
Come Visit me at www.warriorsouls.com or irc.pgpn.com -j #}W|S{

Top