PM TAB - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PM TAB (
/showthread.php?tid=109947)
PM TAB -
yopuya - 23.11.2009
Hello
I have a question
How can I make when I hit tab and select one player to protect bar and write it to write /PM [NO PLAYER] or what have you and more than just have to write me a message
I know this thing was made specifically for SA-MP 0.3 but have not seen it yet on any server
Re: PM TAB -
saiberfun - 03.12.2009
Quote:
Originally Posted by yopuya
Hello
I have a question
How can I make when I hit tab and select one player to protect bar and write it to write /PM [NO PLAYER] or what have you and more than just have to write me a message
I know this thing was made specifically for SA-MP 0.3 but have not seen it yet on any server
|
its in the basefs of standard samp server download
Re: PM TAB -
RastamaN[BzD] - 04.12.2009
they like`s the OnPlayerClickNick or Are Not Know xd
Re: PM TAB -
V1ceC1ty - 04.12.2009
https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
Re: PM TAB -
ded - 04.12.2009
I think he means .. when you click on the player in the tab list, it will open up the cmd line with "/pm [idyouclickedon]" like it did in 0.3 beta testing, remember?
Re: PM TAB -
V1ceC1ty - 04.12.2009
That was beta testing. If you want to do that now use OnPlayerClickPlayer and then use a Dialog.
Re: PM TAB -
Babul - 04.12.2009
on top of your script, put
Код:
new gPMDestinationID[MAX_PLAYERS];
Код:
public OnPlayerClickPlayer(playerid,clickedplayerid,source)
//---------------------------------------------------------
{
new PMName[32];
GetPlayerName(clickedplayerid,PMName[0],32);
gPMDestinationID[playerid]=clickedplayerid;
ShowPlayerDialog(playerid,1234,DIALOG_STYLE_INPUT,"Send PM to",PMName[0],"Send PM","Cancel");
return 1;
}
Код:
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
if(dialogid == 1234)
{
if(!response)
{
SendClientMessage(playerid,0xff5555ff,"PM canceled");
return 1;
}
new PMName[32];
GetPlayerName(playerid,PMName[0],32);
new message[196];
format(message,sizeof(message),"%s:\n%s",PMName[0],inputtext);
SendClientMessage(gPMDestinationID[playerid],0xaaffaaff,message);
return 1;
}
return 0;
}
now its upon you to check for sending the PM or not (if sender == receiver, or sizeof(PM) == 0).
Re: PM TAB -
ded - 05.12.2009
Quote:
Originally Posted by V1ceC1ty
That was beta testing. If you want to do that now use OnPlayerClickPlayer and then use a Dialog.
|
No shit. Beta used OnPlayerClickPlayer also.