07.03.2015, 12:37
Try this 

Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/fstyles", cmdtext, true, 11) == 0) { SendClientMessage(playerid, -1,"___________|FIGHT STYLES|__________"); SendClientMessage(playerid, -1,"/f2 - Boxing"); SendClientMessage(playerid, -1,"/f3 - Kungfu"); SendClientMessage(playerid, -1,"/f4 - KneeHead"); SendClientMessage(playerid, -1,"/f5 - Grabkick"); SendClientMessage(playerid, -1,"/f6 - Elbow"); return 1; } //--------------------COMMAND FOR FIGHTING STYLES if (strcmp("/f1", cmdtext, true, 11) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL); SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Normal fight style! -|"); return 1; } if (strcmp("/f2", cmdtext, true, 11) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Boxing fight style! -|"); return 1; } if (strcmp("/f3", cmdtext, true, 11) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU); SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Kungfu fight style! -|"); return 1; } if (strcmp("/f4", cmdtext, true, 11) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD); SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the KneeHead fight style! -|"); return 1; } if (strcmp("/f5", cmdtext, true, 11) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK); SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the GrabKick fight style! -|"); return 1; } if (strcmp("/f6", cmdtext, true, 11) == 0) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW); SendClientMessage(playerid, 0x00FF00, "|- You have changed your fighting style to the Elbow fight style! -|"); return 1; } return 0; }