Command problem?
#2

use this
pawn Код:
if (!strcmp("/fightstyle 1", cmdtext))
  {
  SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
    SendClientMessage(playerid, 0xFFFFFFFF, "Fighting Style Change to Normal");
    return 1;
  }
 
  if (!strcmp("/fightstyle 2", cmdtext))
  {
  SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
    SendClientMessage(playerid, 0xFFFFFFFF, "Fighting Style Change to Boxing");
    return 1;
  }
 
  if (!strcmp("/fightstyle 3", cmdtext))
  {
  SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
    SendClientMessage(playerid, 0xFFFFFFFF, "Fighting Style Change to Kung Fu");
    return 1;
  }
people can crash your server with the command you posted
Reply


Messages In This Thread
Command problem? - by [mad]MLK - 04.09.2009, 17:06
Re: Command problem? - by V1ceC1ty - 04.09.2009, 17:08
Re: Command problem? - by dugi - 04.09.2009, 17:09
Re: Command problem? - by [mad]MLK - 04.09.2009, 17:10
Re: Command problem? - by Balon - 04.09.2009, 17:50
Re: Command problem? - by Killerkid - 04.09.2009, 17:51
Re: Command problem? - by Balon - 04.09.2009, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)