I Want My Suit Back
#1

Hello,I am making Under Cower CIA Agents! And i make they can chose some skins but i want that if he click he will get the OLD SKIN BACK

like if player chose in class selection cia skin idk for example skin 115 and he click in dialog other skin for example russian mafia Example skin 116 and his skin change from CIA Agent To RUSIAN MAFIA skin...Than if he want his CIA Agent skin back that he chose in Class selection (115) he will get that skin back here is code what i try to make for getting the old skin back ...

CODE:

Код:
if(listitem == 11) // I Want My Suit Back
				{
          SetPlayerColor(playerid,0x375FFFFF);
          SendClientMessage(playerid,0x33CCFFAA,"Here You Have");
					return 1;
				}
				return 1;
i made this if he press this and he have another skin (NOT CIA SKIN) his color will be BLUE again and mesage,but he will still have same skin,cuz i dont know how to code that his OLD skin will be returned... so let me explain again ... UNDERCOWER agents, chose CIA skin in class selection he spawn , want to go for UNDERCOWER AGENT and he press for exampel rusian mafia skin,so his skin change and his color... but when he stop work as udnercover agent and he press ''I Want My Suit Back'' his skin will be like he chose in class selection, how i can make that ? i am using DUDB

i hope u can udnerstand me

Ty For Any Help!
Reply
#2

cmon any help please
Reply
#3

Quote:

i hope u can udnerstand me

I hope i understand you correctly

Declare some variable, where is you will store id of the old skin, like:
Код:
OldSkinCIA[MAX_PLAYERS];//Global variable
And somewhere, where is you know that player skin is one of the CIA skins, use:
Код:
OldSkinCIA[playerid] = GetPlayerSkin(playerid);//Now this variable will store ID of the CIA skin
And your code will looks like this:
Код:
if(listitem == 11) // I Want My Suit Back
{
     SetPlayerColor(playerid,0x375FFFFF);
     SendClientMessage(playerid,0x33CCFFAA,"Here You Have");
     SetPlayerSkin(playerid,OldSkinCIA[playerid]);//Set their skin back
     return 1;
}
return 1;
Reply
#4

thank u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)