Filterscript
#1

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:
Код:
#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;
}
Greetz,

iNeon.
Reply


Messages In This Thread
Filterscript - by iNeon - 26.03.2011, 08:06
Re: Filterscript - by Medal Of Honor team - 26.03.2011, 08:12
Re: Filterscript - by iNeon - 26.03.2011, 08:15
Re: Filterscript - by AK47317 - 26.03.2011, 08:16
Re: Filterscript - by iNeon - 26.03.2011, 08:19
Re: Filterscript - by Hiddos - 26.03.2011, 08:40
Re: Filterscript - by iNeon - 26.03.2011, 09:10

Forum Jump:


Users browsing this thread: 3 Guest(s)