14.08.2012, 14:09
(
Последний раз редактировалось OTACON; 14.08.2012 в 16:58.
)
http://*********/KkUut5mPwOc
[] Funtion:
[] Running Style:
[] Example/Test:
[] Download:
[] Password:
Otacon
http://pastebin.com/mw48eaCe
[] Credits:
OTACON = Modification <--------I Am Otacon!
Seif = Creator code
[] Funtion:
pawn Код:
SetPlayerSprintStyle(playerid, style);
pawn Код:
SetPlayerSprintStyle(playerid, SPRINT_NORMAL); //Normal
SetPlayerSprintStyle(playerid, SPRINT_CIVIL); //Civil
SetPlayerSprintStyle(playerid, SPRINT_FAT); //Fat1
SetPlayerSprintStyle(playerid, SPRINT_FATOLD); //Fat 2
SetPlayerSprintStyle(playerid, SPRINT_GANGSTA); //Gangster
SetPlayerSprintStyle(playerid, SPRINT_WUZI); //blind
SetPlayerSprintStyle(playerid, SPRINT_PANIC); //Panic
SetPlayerSprintStyle(playerid, SPRINT_OLD); //old
pawn Код:
#include <a_samp>
#include <seif_sprint>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Runningstyles", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Choose your form of run","runNormal\nrunCivil\nrunfat 1\nrunfat 2\nrunGanster\nrunblind\nrunPanic\nrunold","accept","Cancel");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 3)
{
if(response)
{
switch(listitem)
{
case 0: {SetPlayerSprintStyle(playerid, SPRINT_NORMAL); SendClientMessage(playerid, -1, "Running selected the Normal style");}
case 1: {SetPlayerSprintStyle(playerid, SPRINT_CIVIL); SendClientMessage(playerid, -1, "Running selected the Civil style");}
case 2: {SetPlayerSprintStyle(playerid, SPRINT_FAT); SendClientMessage(playerid, -1, "Running selected the fat 1 style");}
case 3: {SetPlayerSprintStyle(playerid, SPRINT_FATOLD); SendClientMessage(playerid, -1, "Running selected the fat 2 style");}
case 4: {SetPlayerSprintStyle(playerid, SPRINT_GANGSTA); SendClientMessage(playerid, -1, "Running selected the Gangster style");}
case 5: {SetPlayerSprintStyle(playerid, SPRINT_WUZI); SendClientMessage(playerid, -1, "Running selected the blind style");}
case 6: {SetPlayerSprintStyle(playerid, SPRINT_PANIC); SendClientMessage(playerid, -1, "Running selected the Panic style ");}
case 7: {SetPlayerSprintStyle(playerid, SPRINT_OLD); SendClientMessage(playerid, -1, "Running selected the old style ");}
}
}
}
return 1;
}
[] Password:
Otacon
http://pastebin.com/mw48eaCe
[] Credits:
OTACON = Modification <--------I Am Otacon!
Seif = Creator code