11.01.2014, 16:33
It is possible to set for example boxing fight-style for specific skin id?
Thanks!
Thanks!
if (strcmp(cmdtext, "/boxing", true) == 0)
if(GetPlayerSkin(playerid) == SKIN_ID_YOU_WANT_TO_USE)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
switch (GetPlayerSkin(playerid))
{
case 2: SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
case 270: SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
default: SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
}
return 1;
}