Help SendClientMessage > ShowPlayerDialog
#1

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;
}

Reply
#2

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)