05.09.2012, 18:39
pawn Код:
example:
CMD:fight(playerid)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "FIGHTING STYLES", "{FFFFFF} ", "Ok", "Cancel");
return 1;
}
if (dialogid == 2) {
if (response) {
if (listitem == 0) {
SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
}
if (listitem == 1) {
SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
}
if (listitem == 2) {
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
}
if (listitem == 3) {
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
}
if (listitem == 4) {
SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
}
if (listitem == 5) {
SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
}
}
}