SA-MP Forums Archive
wiki doesn't show where to put the code - 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: wiki doesn't show where to put the code (/showthread.php?tid=105153)



wiki doesn't show where to put the code - Sfinx_17 - 28.10.2009

in wiki doesn't show where to put this code so plz someone tell me where to put this code i will apreciate that plz help

Код:
if (strcmp(cmdtext, "/boxing", true) == 0)
{
  SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
  SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to boxing!");
  return 1;
}



Re: wiki doesn't show where to put the code - ev0lution - 28.10.2009

You're meant to put it in a script under the "OnPlayerCommandText" callback.


Re: wiki doesn't show where to put the code - Sfinx_17 - 28.10.2009

ok thanks man but why wiki don't say all the codes where to put?
exist many codes where is tellin but exist many codes where is not saying where to put ok man thanks a lot