SetPlayerSprintStyle(playerid, style);
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
#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;
}
So if Seif wrote the code and Octagon modified it (in what way btw), what did you do to release it?
|
im gonna create include and add images and show how it functions.But will keep broken links...and earn respect and slaps. :P Dont take this seriouS!
So if Seif wrote the code and Octagon modified it (in what way btw), what did you do to release it?
|
if (((newkeys & KEY_SPRINT && newkeys & KEY_UP) || (newkeys & KEY_SPRINT && newkeys & KEY_DOWN) || (newkeys & KEY_SPRINT && newkeys & KEY_LEFT) || (newkeys & KEY_SPRINT && newkeys & KEY_RIGHT)) || ((oldkeys & KEY_SPRINT && newkeys & KEY_UP) || (oldkeys & KEY_SPRINT && newkeys & KEY_DOWN) || (oldkeys & KEY_SPRINT && newkeys & KEY_LEFT) || (oldkeys & KEY_SPRINT && newkeys & KEY_RIGHT)) || ((newkeys & KEY_SPRINT && oldkeys & KEY_UP) || (newkeys & KEY_SPRINT && oldkeys & KEY_DOWN) || (newkeys & KEY_SPRINT && oldkeys & KEY_LEFT) || (newkeys & KEY_SPRINT && oldkeys & KEY_RIGHT)) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) |