SA-MP Forums Archive
Return to the original skin problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Return to the original skin problem. (/showthread.php?tid=322299)



Return to the original skin problem. - viddo - 01.03.2012

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.