Return to the original skin problem.
#1

In this code
Код:
						else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
			            {
			                OnSpecialFDuty[playerid] = 0;
				    		format(string, sizeof(string), "* Soldier %s places his Badge and Gun in his locker.", sendername);
						}
						ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
						SafeResetPlayerWeapons(playerid);
						SafeSetPlayerArmour(playerid, 0);
						SafeGivePlayerWeapon(playerid, 41, 500);
						PlayerInfo[playerid][pDuty] = 0;
						PlayerInfo[playerid][pChar] = 0;
						SetPlayerColor(playerid, TEAM_HIT_COLOR);
						new originalskin = PlayerInfo[playerid][pModel];
    					SetPlayerSkin(playerid, originalskin);
    					AttachWeaponCorrectly(playerid, 99);
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD2, "** You are not in a locker room !");
					return 1;
				}
			}
When the solider returns his badge back to the locker place it should remove his Army skin and returns his old skin he had on, But it just gives him the skin id 7, i Don't know why, this is in all the cmds that change the skin then returns it back.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)