public OnPlayerClickPlayer Not Working
#1

Hey guys, I have a problem with public OnPlayerClickPlayer(playerid, clickedplayerid, source).
I'm making a Admin script where one of the Admins click on a player's name in the "TAB" score screen, which then calls a dialog that gives the Admin a number of options like Kick and Ban etc.

Now the problem is that the "public OnPlayerClickPlayer" does not work at all, i've tried almost everything, from SendClientMessage to SetPVarInt but nothing is executed.

Here is my current code that does not work.

Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	SetPVarInt(playerid, "ClickedPlayerID", clickedplayerid);
	ShowPlayerDialog(playerid, DIALOG_MOD1MENU, DIALOG_STYLE_LIST, "ABL-Admin Junior Modderator Menu", "Kick Player","Select","Exit");
	return 1;
}
Please note that it is in a filterscript and not a Game Mode, also putting this in a command works correctly, but I want it to work with the Score Screen.

Thanx in advance.
Reply


Messages In This Thread
public OnPlayerClickPlayer Not Working - by Hyperfire - 22.06.2014, 15:21
Re : public OnPlayerClickPlayer Not Working - by Clad - 22.06.2014, 15:28
Re: public OnPlayerClickPlayer Not Working - by Hyperfire - 22.06.2014, 15:45
Re : public OnPlayerClickPlayer Not Working - by Clad - 22.06.2014, 15:47
Re: public OnPlayerClickPlayer Not Working - by Hyperfire - 22.06.2014, 15:59
Re: public OnPlayerClickPlayer Not Working - by Clad - 22.06.2014, 16:02
Re: public OnPlayerClickPlayer Not Working - by RenovanZ - 22.06.2014, 16:08
Re: public OnPlayerClickPlayer Not Working - by Clad - 22.06.2014, 16:10
Re: public OnPlayerClickPlayer Not Working - by Konstantinos - 22.06.2014, 16:10
Re: public OnPlayerClickPlayer Not Working - by Hyperfire - 22.06.2014, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)