wiki doesn't show where to put the code
#1

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;
}
Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)