mIRC Homepage
Posted By: MuscleCar Set Script - 20/06/04 05:51 PM
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
Posted By: MuscleCar Re: Set Script - 20/06/04 08:37 PM
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
Posted By: Fibsi Re: Set Script - 20/06/04 10:32 PM
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
Posted By: MuscleCar Re: Set Script - 20/06/04 11:08 PM
Cool thanks it works
© mIRC Discussion Forums