12.11.2017, 14:57
Hi guys i need help with command /oskin.. I has try this script but there are bug in this command
The mistake is the skin didn't changed any idea ?? Thanks
Код:
CMD:oskin(playerid, params[]) { new orgid=PlayerInfo[playerid][pOrgid],duty,oColours[25]; duty = PlayerInfo[playerid][pDuty]; if(PlayerInfo[playerid][pOrgid]>0) { if(duty==0) { SetPlayerSkin(playerid,OrgInfo[PlayerInfo[playerid][pOrgid]][oSkin1]); duty = 2; } if(duty==1) { SetPlayerSkin(playerid,OrgInfo[PlayerInfo[playerid][pOrgid]][oSkin1]); duty = 2; } if(duty==2) { SetPlayerSkin(playerid,OrgInfo[PlayerInfo[playerid][pOrgid]][oSkin2]); duty = 3; } if(duty==3) { SetPlayerSkin(playerid,OrgInfo[PlayerInfo[playerid][pOrgid]][oSkin3]); duty = 4; } if(duty==4) { SetPlayerSkin(playerid,OrgInfo[PlayerInfo[playerid][pOrgid]][oSkin4]); duty = 5; } if(duty==5) { SetPlayerSkin(playerid,OrgInfo[PlayerInfo[playerid][pOrgid]][oSkin5]); duty = 1; } GivePlayerWeapon(playerid, OrgInfo[orgid][oWeaps1],OrgInfo[orgid][oAmmo1]); GivePlayerWeapon(playerid, OrgInfo[orgid][oWeaps2],OrgInfo[orgid][oAmmo2]); GivePlayerWeapon(playerid, OrgInfo[orgid][oWeaps3],OrgInfo[orgid][oAmmo3]); format(oColours, 12, "0x%s99", OrgInfo[orgid][oColor]); SetPlayerColor(playerid, HexToInt(oColours)); if(OrgInfo[orgid][oType]>=1 && OrgInfo[orgid][oType]<4) { SendClientMessage(playerid, HexToInt(oColours),"You're On Duty"); } } return 1; }