I don't know how can I do it:
Download your cryptocoin daemon, setup JSON RPC values in your config and add:
txindex = 1
Run your daemon with -reindex and -server arguments
it must be on serwer together with this scrpit??
any help ?

txindex = 1 is literaly a config found in your bitcoin.conf (by default it's not added and you have to add it)
When you add txindex = 1, automatically the next time that you open Bitcoin Core (or the daemon client that you're using) it will ask for a reindex wich will take a lot of time but you will be able to use txindex.