mIRC Home    About    Download    Register    News    Help

Print Thread
Set Script #87656 20/06/04 05:51 PM
Joined: Dec 2003
Posts: 9
MuscleCar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Joined: Dec 2003
Posts: 9
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

Re: Set Script #87657 20/06/04 08:37 PM
Joined: Dec 2003
Posts: 9
MuscleCar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Joined: Dec 2003
Posts: 9
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

Re: Set Script #87658 20/06/04 10:32 PM
Joined: Jan 2004
Posts: 26
F
Fibsi Offline
Ameglian cow
Offline
Ameglian cow
F
Joined: Jan 2004
Posts: 26
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

Re: Set Script #87659 20/06/04 11:08 PM
Joined: Dec 2003
Posts: 9
MuscleCar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Joined: Dec 2003
Posts: 9
Cool thanks it works