OnPlayerClickPlayer?
#1

Im making a admin dialog so when a admin clicks a player it comes up with vehicle controls, admin controls, message controls ect,
Ive made the dialog and everything, But ingame if i click soemthing, It does it to me and not the player i clicked?
I tried erm clickedplayerid on the dialogbut it comes up undefined symbol or whatever because its not in OnPlayerClickPlayer,
how would i get it to get the clickedplayerid
Reply
#2

pawn Код:
new ClickedPlayer[MAX_PLAYERS];

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    if(source == CLICK_SOURCE_SCOREBOARD)
        ClickedPlayer[playerid] = clickedplayerid;

    return 1;
}
Then use ClickedPlayer[playerid] under OnDialogResponse.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)