17.01.2011, 05:47
do a global variable:
pawn Код:
new ClickID[MAX_PLAYERS];
public OnPlayerClickPlayer(/*...*/)
{
ClickID[playerid] = clickedplayerid;
}
public OnDialogResponse(/*...*/);
{
switch(listitem)
{
case 0:
{
if(ClickID[playerid] != INVALID_PLAYER_ID)
{
cmd_kick(playerid, ClickID[playerid]);
ClickID[playerid] = INVALID_PLAYER_ID;
}