[Hel] To me
#1

Hello, As estasn?, I hope that BIEM, well I would like to convert these commands into a simple menu

Код:
if (strcmp(cmdtext, "/kugnfu", true) == 0)
{
SetPlayerFightingStyle(playerid,FIGHT_STYLE_KUNGFU);
SendClientMessage(playerid, COLOR_RED, "Ahora tu estilo de pelea es konfu");
GivePlayerMoney8,playerid, -750)
SendClienteMessage(playerid, COLOR_BLUE, "Se te descontaron 750$);
return 1;
}
if (strcmp(cmdtext, "/boxing", true) == 0)
{
SetPlayerFightingStyle(playerid,FIGHT_STYLE_BOXING);
SendClientMessage(playerid, COLOR_RED, "Ahora tu estilo de pelea es de boxer");
GivePlayerMoney(playerid, -600)
SendClienteMessage(playerid, COLOR_BLUE, "Se te descontaron 600$);
return 1;
}
if (strcmp(cmdtext, "/Patadas", true) == 0)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
SendClientMessage(playerid, COLOR_RED, "Ahora peleas al estilo grabkick");
GivePlayerMoney(playerid, -750)
SendClienteMessage(playerid, COLOR_BLUE, "Se te descontaron 750$);
return 1;
}
if (strcmp(cmdtext, "/normal", true) == 0)
{
SetPlayerFightingStyle(playerid,FIGHT_STYLE_NORMAL);
SendClientMessage(playerid, COLOR_RED, "Ahora as buelto a la normalidad");
return 1;
}
if (strcmp(cmdtext, "/codos", true) == 0)
{
SetPlayerFightingStyle(playerid,FIGHT_STYLE_ELBOW);
SendClientMessage(playerid, COLOR_RED, "Ahora peleas al estilo elbow");
GivePlayerMoney(playerid, -600)
SendClientMessage(playerid, COLOR_BLUE, "Se te descontaron 600);
return 1;
}
well want the menu to work alone in this ubicasion

Код:
771.9371,5.1919,1000.7802
Bone here




Well I hope that will help me
Reply
#2

pawn Код:
if (strcmp(cmdtext, "/kugnfu", true) == 0)
{
SetPlayerFightingStyle(playerid,FIGHT_STYLE_KUNGFU);
SendClientMessage(playerid, COLOR_RED, "Ahora tu estilo de pelea es konfu");
GivePlayerMoney8,playerid, -750)
SendClienteMessage(playerid, COLOR_BLUE, "Se te descontaron 750$);
return 1;
}
should be
pawn Код:
if (strcmp(cmdtext, "/kugnfu", true) == 0)
{
SetPlayerFightingStyle(playerid,FIGHT_STYLE_KUNGFU);
SendClientMessage(playerid, COLOR_RED, "Ahora tu estilo de pelea es konfu");
GivePlayerMoney(playerid, -750)
SendClienteMessage(playerid, COLOR_BLUE, "Se te descontaron 750$);
return 1;
}
Reply
#3

Huo. no no no men, I say covert those common in this menu as well as
Example:
Reply
#4

Quote:
Originally Posted by Luis_Yankee
Huo. no no no men, I say covert those common in this menu as well as
Example:
thats textdraw
Reply
#5

http://forum.sa-mp.com/index.php?topic=122952.0

First of all, YOU FAIL HARD when it comes to typing.
this
pawn Код:
if (strcmp(cmdtext, "/kugnfu", true) == 0)
Should be
pawn Код:
if (strcmp(cmdtext, "/kungfu", true) == 0)
Kungfu, not kugnfu

@luigifan, no that's a MENU.
Reply
#6

Quote:
Originally Posted by PlayON
http://forum.sa-mp.com/index.php?topic=122952.0

First of all, YOU FAIL HARD when it comes to typing.
this
pawn Код:
if (strcmp(cmdtext, "/kugnfu", true) == 0)
Should be
pawn Код:
if (strcmp(cmdtext, "/kungfu", true) == 0)
Kungfu, not kugnfu

@luigifan, no that's a MENU.
ahh lol sorry. I wrote the wrong thing XD
Reply
#7

Quote:
Originally Posted by PlayON
http://forum.sa-mp.com/index.php?topic=122952.0

First of all, YOU FAIL HARD when it comes to typing.
this
pawn Код:
if (strcmp(cmdtext, "/kugnfu", true) == 0)
Should be
pawn Код:
if (strcmp(cmdtext, "/kungfu", true) == 0)
Kungfu, not kugnfu

@luigifan, no that's a MENU.
Thanks crazy :P :P :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)