Скачайте инклуйд (в Прикреплении)
[moder]Потом создаём команды: [/moder]
Code
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/karate", true) == 0)
{
GameTextForPlayer(playerid, "Karate Style ~g~On", 4000, 4);
SetPlayerFightingStyle(playerid, FIGHT_KARATE);
return 1;
}
if(strcmp(cmdtext, "/boxer", true) == 0)
{
GameTextForPlayer(playerid, "Boxer Style ~g~On", 4000, 4);
SetPlayerFightingStyle(playerid, FIGHT_BOXING);
return 1;
}
if(strcmp(cmdtext, "/gangster", true) == 0)
{
GameTextForPlayer(playerid, "Gangster Style ~g~On", 4000, 4);
SetPlayerFightingStyle(playerid, FIGHT_GANGSTER);
return 1;
}
if(strcmp(cmdtext, "/normal", true) == 0)
{
GameTextForPlayer(playerid, "Normal Style ~g~On", 4000, 4);
SetPlayerFightingStyle(playerid, FIGHT_NORMAL);
return 1;
}
return 0;
}