[Ayuda]Estilo de Pelea Al Loguear
#2

hacelo con un dialogo.
algo asi:
pawn Код:
new Estilos[] = "1\tNormal\n2\tBoxeo\n3\tKungFu\n";
new Estilo[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp("/comando", cmdtext", true) == 0)
  {
    //tu comando de registro
    ShowPlayerDialog(playerid, 1, 2, "
Estilo de pelea", Estilos, "aceptar", "cancelar");
    return 1;
  }
  return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 1)
  {
    if(response)
    {
      if(listitem == 0)
      {
        Estilo[playerid] == 4);
        SetPlayerFightingStyle(playerid, 4);
      }
      if(listitem == 1)
      {
        Estilo[playerid] == 5);
        SetPlayerFightingStyle(playerid, 5);
      }
      if(listitem == 2)
      {
        Estilo[playerid] == 6);
        SetPlayerFightingStyle(playerid, 6);
      }
    }
  }
  return 0;
}
//luego guardas la variable Estilo[playerid] en el archivo que corresponda a la cuenta del jugador mediante dini o mysql o lo que tu quieras.
Espero que te sirva
Reply


Messages In This Thread
[Ayuda]Estilo de Pelea Al Loguear - by Roymer - 29.03.2010, 23:19
Re: [Ayuda]Estilo de Pelea Al Loguear - by TheChaoz - 30.03.2010, 00:06
Re: [Ayuda]Estilo de Pelea Al Loguear - by Roymer - 30.03.2010, 00:09
Re: [Ayuda]Estilo de Pelea Al Loguear - by TheChaoz - 30.03.2010, 00:15
Re: [Ayuda]Estilo de Pelea Al Loguear - by Roymer - 30.03.2010, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)