SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Español/Spanish

 
 
Thread Tools Display Modes
Old 09/01/2010, 12:16 AM   #1
TheChaoz
High-roller
 
TheChaoz's Avatar
 
Join Date: Dec 2009
Location: Argentina
Posts: 4,649
Reputation: 239
Default [TUTORIAL]Estilos de pelea

Bueno se me ocurrio que podria ser util asi que hice este tutorial

para cambiar el estilo de pelea de un jugador se utiliza la sentencia:
pawn Code:
SetPlayerFightingStyle (playerid, estilo);

codigo para strcmd:
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmd, "/box", true) == 0){
    SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
    SendClientMessage(playerid, 0xF6F600F6, "Tu estilo de pelea acutal es de Boxeo!");

    return 1;
  }

  return 0;
}

para los que usan dcmd:
esto se escribe abajo de los includes.
pawn Code:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(box, 3, cmdtext);

  return 0;
}
pawn Code:
dcmd_box(playerid, params[]){
  #pragma unused params
  SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
  SendClientMessage(playerid, 0xF6F600F6, "Tu estilo de pelea actual es de Boxeo!");

  return 1;
}

para ver los estilos de pelea posibles entra aca http://wiki.sa-mp.com/wiki/Fightingstyles

espero que les sirva
__________________
TheChaoz is offline  
Old 09/01/2010, 12:20 AM   #2
Rocha04
Little Clucker
 
Join Date: Jul 2007
Posts: 9
Reputation: 0
Default Re: [TUTORIAL]Estilos de pelea

fala em ingles ( speak english)
Rocha04 is offline  
Old 09/01/2010, 12:22 AM   #3
TheChaoz
High-roller
 
TheChaoz's Avatar
 
Join Date: Dec 2009
Location: Argentina
Posts: 4,649
Reputation: 239
Default Re: [TUTORIAL]Estilos de pelea

Quote:
Originally Posted by Str1Ker
fala em ingles ( speak english)
this is the section of spanish/expañol not ingles/english
I reply u by PM
__________________
TheChaoz is offline  
Old 09/01/2010, 05:35 PM   #4
CristianTdj
High-roller
 
CristianTdj's Avatar
 
Join Date: Jul 2009
Location: Andalucía, Spain.
Posts: 1,307
Reputation: 5
Default Re: [TUTORIAL]Estilos de pelea

Noob, it isn't international, -.-

Buen post, yo lo hice con strcmp.
__________________

CristianTdj is offline  
Old 08/06/2010, 01:19 AM   #5
ConecCionMex
Huge Clucker
 
ConecCionMex's Avatar
 
Join Date: Feb 2010
Posts: 425
Reputation: 3
Default Re: [TUTORIAL]Estilos de pelea

Quote:
Originally Posted by CristianTdj
Noob, it isn't international, -.-

Buen post, yo lo hice con strcmp.
UNA DUDA COMO LO PONGO PARA QE SEA ES ESTILO DE PELEA EN TODO EL TIEMPO
ConecCionMex is offline  
Old 08/06/2010, 01:25 AM   #6
leaNN!
Gangsta
 
Join Date: Jun 2009
Posts: 795
Reputation: 9
Default Re: [TUTORIAL]Estilos de pelea

En que sentido lo dices Mex? Asi deberia ser permanente, exepto cuando sale del server.
__________________
-MISTER ROOT ONE-
leaNN! is offline  
Old 08/06/2010, 01:29 AM   #7
ConecCionMex
Huge Clucker
 
ConecCionMex's Avatar
 
Join Date: Feb 2010
Posts: 425
Reputation: 3
Default Re: [TUTORIAL]Estilos de pelea

Quote:
Originally Posted by Leaan(L)
En que sentido lo dices Mex? Asi deberia ser permanente, exepto cuando sale del server.
perdona por no explicarme bien
digo des de qe el jugador conecte al server qe s eponga ese estilo sin necesidad de usar el comando

solo se pone en
OnPlayerConnect?
ConecCionMex is offline  
Old 08/06/2010, 02:05 AM   #8
TheChaoz
High-roller
 
TheChaoz's Avatar
 
Join Date: Dec 2009
Location: Argentina
Posts: 4,649
Reputation: 239
Default Re: [TUTORIAL]Estilos de pelea

Quote:
Originally Posted by ConecCionMex
Quote:
Originally Posted by Leaan(L)
En que sentido lo dices Mex? Asi deberia ser permanente, exepto cuando sale del server.
perdona por no explicarme bien
digo des de qe el jugador conecte al server qe s eponga ese estilo sin necesidad de usar el comando

solo se pone en
OnPlayerConnect?
si, si con ponerlo ahi funcionaria
__________________
TheChaoz is offline  
Old 08/06/2010, 05:23 PM   #9
xenowort
High-roller
 
xenowort's Avatar
 
Join Date: Nov 2009
Location: en mi casa
Posts: 1,762
Reputation: 1
Default Re: [TUTORIAL]Estilos de pelea

Quote:
Originally Posted by CristianTdj
Noob, it isn't international, -.-

Buen post, yo lo hice con strcmp.
xDDD eso de noob jajaj xd

Buen aporte the_chaoz!
__________________
Esta cuenta esta cerrada, ya que no juego mas samp.
xenowort is offline  
Old 08/06/2010, 05:54 PM   #10
TheChaoz
High-roller
 
TheChaoz's Avatar
 
Join Date: Dec 2009
Location: Argentina
Posts: 4,649
Reputation: 239
Default Re: [TUTORIAL]Estilos de pelea

Quote:
Originally Posted by xenowort
Quote:
Originally Posted by CristianTdj
Noob, it isn't international, -.-

Buen post, yo lo hice con strcmp.
xDDD eso de noob jajaj xd

Buen aporte the_chaoz!
igual este tut es re viejo :P fue el 1º tut q hice a los pocos dias de registrarme creo
__________________
TheChaoz is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Estilos de Luta jcs14 Português/Portuguese 2 10/02/2010 11:15 AM


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.