Also ich zeig mal das fightstyle system
if(strcmp("/fightstyle", cmdtext, true) == 0 || strcmp("/fight", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_fight[128];
if(strcmp(x_fight,"kongfu",true) == 0)
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
SendClientMessage(playerid,COLOR_GREY,"Fightstyle: Du erlernst die Kampfkunst KongFu.");
else if(strcmp(x_fight,"boxen",true) == 0)
(
SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING); //Kampfstil
SendClientMessage(playerid,COLOR_GREY,"Fightstyle: Du erlernst die Kampfkunst Boxen.");
)
else if(strcmp(x_fight,"kickboxen",true) == 0)
(
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
SendClientMessage(playerid,COLOR_GREY,"Fightstyle: Du erlernst die Kampfkunst Kickboxen.");
)
else if(strcmp(x_fight,"grabkick",true) == 0)
(
SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
SendClientMessage(playerid,COLOR_GREY,"Fightstyle: Du erlernst die Kampfkunst Grabkick.");
)
else if(strcmp(x_fight,"elbow",true) == 0)
(
SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);
SendClientMessage(playerid,COLOR_GREY,"Fightstyle: Du erlernst die Kampfkunst Elbow.");
)
if(strcmp(x_fight,"normal",true) == 0)
(
SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
SendClientMessage(playerid,COLOR_GREY,"Fightstyle: Du verlernst deine Kampfkunst.");
)
return 1;
}
Mfg koyou