SA-MP Forums Archive
[Hel] To me - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Hel] To me (/showthread.php?tid=147276)



[Hel] To me - Luis_Yankee - 11.05.2010

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


Re: [Hel] To me - luigifan9 - 11.05.2010

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;
}



Re: [Hel] To me - Luis_Yankee - 11.05.2010

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


Re: [Hel] To me - luigifan9 - 11.05.2010

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


Re: [Hel] To me - Zh3r0 - 11.05.2010

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.


Re: [Hel] To me - luigifan9 - 11.05.2010

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


Re: [Hel] To me - Luis_Yankee - 11.05.2010

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