01.05.2012, 20:52
What do you mean by clickedplayerid ?
Edit: Oh ok I got it you meant on OnPlayerClickPlayer
I would write even more better but I am not on pc ATM.
-FalconX
Edit: Oh ok I got it you meant on OnPlayerClickPlayer
pawn Код:
new string[80], pName[MAX_PLAYER_NAME], Fname[MAX_PLAYER_NAME];
GetPlayerName(clickedplayerid, Fname, sizeof(Fname));
GetPlayerName(playerid, pName, sizeof(pName));
format(string,sizeof string,"Player: %s and Clicked Player: %s",pName, Fname); // you could change the text inside if you want.
SendClientMessageToAll(-1,string);
-FalconX