26.07.2012, 18:18
pawn Код:
CMD:walkstyle(playerid, params[])
{
if(PlayerInfo[playerid][pDonateRank] > 3)
{
ShowPlayerDialog(playerid, 66886, DIALOG_STYLE_LIST, "Walking Style", "Pedestrian\nGangster\nGangster II\nOld\nFat and Old\nFat\nLady\nLady II\nLady III\nLady IV\nDrunk\nBlind\nRemove current walk","OK","Cancel");
return 1;
}
else
{
ShowPlayerDialog(playerid, 66887, DIALOG_STYLE_LIST, "Walking Style", "Pedestrian\nGangster\nOld\nLady\nLady II\nRemove current walk","OK","Cancel");
return 1;
}
}
pawn Код:
if(dialogid == 66886)
{
if(response)
{
if(listitem >= 0 && listitem < 13)
{
SetPlayerWalkingStyle(playerid, listitem+2);
SendClientMessage(playerid, COLOR_WHITE, "You have successfully changed your walking style.");
SaveWS(playerid);
}
else if(listitem == 13)
{
SetPlayerWalkingStyle(playerid, 3);
SendClientMessage(playerid, COLOR_WHITE, "You have removed your current walking style.");
SaveWS(playerid);
}
SendClientMessage(playerid, COLOR_WHITE, "BUG #1.");
}
SendClientMessage(playerid, COLOR_WHITE, "BUG #3.");
}
SendClientMessage(playerid, COLOR_WHITE, "BUG #2.");