PHP accessing PAWN
#5

If I understood correctly, in OnPlayerConnect add player's id and player's name, in OnPlayerDisconnect remove it. Then, connect using php to mysql and check if the name is in mysql, if yes - player is connected, if not - player isn't connected. For communicating you can use sockets plugin or make another mysql table and with timer in server check if there is a "task" in mysql, after completing "task" remove that field from mysql, for example:
for what player | task
Player_Name | addscore 10

if there is set task, do it and remove that field.
I really don't know how to explain easily, hope you understood .
Reply


Messages In This Thread
PHP accessing PAWN - by Gigi-The-Beast - 29.01.2013, 15:45
Re: PHP accessing PAWN - by mineralo - 29.01.2013, 15:48
Re: PHP accessing PAWN - by Gigi-The-Beast - 29.01.2013, 15:50
AW: PHP accessing PAWN - by Kwashiorkor - 29.01.2013, 15:57
Re: PHP accessing PAWN - by zgintasz - 29.01.2013, 15:59
Re: PHP accessing PAWN - by Gigi-The-Beast - 29.01.2013, 16:02
Re: PHP accessing PAWN - by zgintasz - 29.01.2013, 16:14
Re: PHP accessing PAWN - by Gigi-The-Beast - 29.01.2013, 16:21
AW: Re: PHP accessing PAWN - by Kwashiorkor - 29.01.2013, 16:36
Re: PHP accessing PAWN - by Gigi-The-Beast - 29.01.2013, 16:40
Re: PHP accessing PAWN - by Niko_boy - 29.01.2013, 17:09
Re: PHP accessing PAWN - by Y_Less - 29.01.2013, 17:17
Re: PHP accessing PAWN - by zgintasz - 29.01.2013, 17:29
Re: PHP accessing PAWN - by Y_Less - 29.01.2013, 17:36
Re: PHP accessing PAWN - by Mauzen - 29.01.2013, 17:38
Re: PHP accessing PAWN - by zgintasz - 29.01.2013, 17:50
Re: PHP accessing PAWN - by Gigi-The-Beast - 29.01.2013, 17:55
Re: PHP accessing PAWN - by AndreT - 29.01.2013, 22:32
Re: PHP accessing PAWN - by Y_Less - 30.01.2013, 02:52
Re: PHP accessing PAWN - by Gigi-The-Beast - 30.01.2013, 10:02
Re: PHP accessing PAWN - by Y_Less - 30.01.2013, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)