SetPlayerSprintStyle(playerid, style);
SetPlayerSprintStyle(playerid, SPRINT_NORMAL); //Normal
SetPlayerSprintStyle(playerid, SPRINT_CIVIL); //Civil
SetPlayerSprintStyle(playerid, SPRINT_FAT); //Gordo 1
SetPlayerSprintStyle(playerid, SPRINT_FATOLD); //Gordo 2
SetPlayerSprintStyle(playerid, SPRINT_GANGSTA); //Gangster
SetPlayerSprintStyle(playerid, SPRINT_WUZI); //Ciego
SetPlayerSprintStyle(playerid, SPRINT_PANIC); //Panico
SetPlayerSprintStyle(playerid, SPRINT_OLD); //Viejo
#include <a_samp>
#include <seif_sprint>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/EstilosCorrer", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Elije Tu forma de Correr","CorrerNormal\nCorrerCivil\nCorrerGordo 1\nCorrerGordo 2\nCorrerGangster\nCorrerCiego\nCorrerPanico\nCorrerViejo","Aceptar","Cancelar");
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, "Seleccionaste el estilo de Correr Normal");}
case 1: {SetPlayerSprintStyle(playerid, SPRINT_CIVIL); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Civil");}
case 2: {SetPlayerSprintStyle(playerid, SPRINT_FAT); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Gordo 1");}
case 3: {SetPlayerSprintStyle(playerid, SPRINT_FATOLD); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Gordo 2");}
case 4: {SetPlayerSprintStyle(playerid, SPRINT_GANGSTA); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Gangster");}
case 5: {SetPlayerSprintStyle(playerid, SPRINT_WUZI); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Ciego");}
case 6: {SetPlayerSprintStyle(playerid, SPRINT_PANIC); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Panico");}
case 7: {SetPlayerSprintStyle(playerid, SPRINT_OLD); SendClientMessage(playerid, -1, "Seleccionaste el estilo de Correr Viejo");}
}
}
}
return 1;
}
Estб gracioso,
que le has modificado? :O El dialog se lo has aсadido, no? |