- เครดิต
- 31
- ความรู้
-
- เงิน $
-
- ความดี
-
|
{
print("============================");
print("=========Fight Styles=========");
print("============================");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/styles", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, Fighting_GOOD_SH4RP, DIALOG_STYLE_LIST, "Fight Styles", "·èÒµèÍÊÙé", "àÅ×Í¡", "¡àÅÔ¡");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Fighting_GOOD_SH4RP)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, Fighting_GOOD_SH4RP+1, DIALOG_STYLE_LIST, "Fight Styles", "à¹é¹ÈÍ¡\nàªÔ§ÁÇÂ\nà¹é¹àµÐ\nà¹é¹à¢èÒ\nàªÔ§¡Ñ§¿Ù\n¸ÃÃÁ´Ò", "àÅ×Í¡", "¡àÅÔ¡");
}
}
return 1;
}
if(dialogid == Fighting_GOOD_SH4RP+1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
}
if(listitem == 1)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
}
if(listitem == 2)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
}
if(listitem == 3)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
}
if(listitem == 4)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
}
if(listitem == 5)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
}
}
return 1;
}
return 0;
} |
|