26.03.2011, 08:06
Hi,
I'm working with filterscripts but I have a problem.
I can call every callback, but OnPlayerConnect and OnPlayerDisconnect not.
How can I fix it?
Code:
Greetz,
iNeon.
I'm working with filterscripts but I have a problem.
I can call every callback, but OnPlayerConnect and OnPlayerDisconnect not.
How can I fix it?
Code:
Код:
#include <a_samp> #include <a_mysql> #include <gvar> #include <SHA512> #include <sscanf2> #include <streamer> #define DIALOG_ID_ACCOUNT 0 public OnFilterScriptInit() { return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, 0xC0C0C0AA, "Hello"); ShowPlayerDialog(playerid, DIALOG_ID_ACCOUNT, DIALOG_STYLE_INPUT, "Register you're account", "propagenda", "Register it", ""); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerRequestSpawn(playerid) { /*if(GetPVarInt(playerid, "loggedin") == 0) return 0;*/ return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; }
iNeon.