IP [+REP]
#5

1. new field in database, preferably in users table called "ip"
2. when the player logs in / registers the ip would be updated to that value
3. make the command with a parameter (zcmd & sscanf is a good way to do that)
4. on the command, use the SELECT to count the amount of rows first
5. retrieve the rows and the other stuff you want to have (score, name, last login etc.)
6. once that's all done add it into a dialog or use SendClientMessage to each one that was found
7. go and test it

I'm not doing it for you, steps are the best way to learn.
Reply


Messages In This Thread
IP [+REP] - by arlindi - 27.02.2015, 16:58
Re: IP [+REP] - by HazardouS - 27.02.2015, 18:04
Re: IP [+REP] - by arlindi - 27.02.2015, 18:51
Re: IP [+REP] - by arlindi - 27.02.2015, 21:26
Re: IP [+REP] - by DanishHaq - 27.02.2015, 21:32
Re: IP [+REP] - by arlindi - 27.02.2015, 21:35
Re: IP [+REP] - by HazardouS - 27.02.2015, 22:24
Re: IP [+REP] - by arlindi - 27.02.2015, 22:27
Re: IP [+REP] - by DanishHaq - 27.02.2015, 23:06

Forum Jump:


Users browsing this thread: 1 Guest(s)