04.09.2009, 17:08
use this
people can crash your server with the command you posted
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;
}
