SA-MP Forums Archive
Help SendClientMessage > ShowPlayerDialog - 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)
+--- Thread: Help SendClientMessage > ShowPlayerDialog (/showthread.php?tid=543399)



Help SendClientMessage > ShowPlayerDialog - proSeryoga - 26.10.2014

Sorry for my English

Tell me how to convert with SendClientMessage on ShowPlayerDialog
Quote:

CMD:myrank(playerid, params[])
{
switch (PlayerInfo[playerid][Kills])
{
case 0..49 : SendClientMessage(playerid,-1,"Rank: Noob");
case 50..99 : SendClientMessage(playerid,-1,"ВRank: Emigrant");
case 100..199 : SendClientMessage(playerid,-1,"Rank: Bandit");
case 200..499 : SendClientMessage(playerid,-1,"Rank: Killer");
case 500..699 : SendClientMessage(playerid,-1,"Rank: Gangster");
case 700..999 : SendClientMessage(playerid,-1,"Rank: Terminator");
default: SendClientMessage(playerid,-1,"Rank: Legenda");
}
return 1;
}




Re: Help SendClientMessage > ShowPlayerDialog - Anzipane - 26.10.2014

pawn Код:
// On top of the script
#define DIALOG_RANK (12345)

case 0..49: ShowPlayerDialog(playerid, DIALOG_RANK, DIALOG_STYLE_MSGBOX, "Rank", "Rank: Noob", "Ok", "");
// Etc..