I need mute script with timer -
bustern - 03.09.2013
Can someone give me that script and to save when player disconnect not to lose his mute
Re: I need mute script with timer -
TonyII - 03.09.2013
It depends on what you use to save, do you use YINI to save player stats?
Re: I need mute script with timer -
bustern - 03.09.2013
Yes, i use YINI
Re: I need mute script with timer -
TonyII - 03.09.2013
Alright,
pawn Код:
//Add this somewhere under your /mute command
PlayerInfo[secondplayer][mute enum] = 1;
//This under OnPlayerDisconnect
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Muted",PlayerInfo[playerid]][mute enum]);
INI_Close(File);
//Under your load user data
INI_Int("Muted",PlayerInfo[playerid][mute enum]);
Re: I need mute script with timer -
DanishHaq - 03.09.2013
If what Tony said didn't work, show us your mute command.
Re: I need mute script with timer -
TonyII - 03.09.2013
Instead of giving me a minus rep with 'WTF' as the reason of it, you could just post your codes like DanishHaq told you, the codes that I posted is just an example how to save it. I highly doubt that you wouldn't understand that this was an example and that you could not figure out how to do the rest since I saw your signature. Anyway if you want to know how to save and load it post your codes.
Re: I need mute script with timer -
bustern - 03.09.2013
I dont need a leasson how to save mute time, i need MUTE script
Re: I need mute script with timer -
TonyII - 03.09.2013
Quote:
Originally Posted by bustern
Can someone give me that script and to save when player disconnect not to lose his mute
|
Well, it's pretty obvious that English isn't your best language but that doesn't mean that you have to minus rep me for a little misunderstanding do you? This misunderstanding is something you caused because you obviously said that you want a muted player to stay muted after he disconnects.
Re: I need mute script with timer -
Isolated - 03.09.2013
Quote:
Originally Posted by TonyII
Well, it's pretty obvious that English isn't your best language but that doesn't mean that you have to minus rep me for a little misunderstanding do you? This misunderstanding is something you caused because you obviously said that you want a muted player to stay muted after he disconnects.
|
Can you explain the use of [Muted enum] please?
Re: I need mute script with timer -
TonyII - 03.09.2013
Yea, the enum you use under the command or onplayertext to see if the player is muted or not, for example pMute, or Muted could replace muted enum. Anyway he's looking for a pre-made script so that is all the help I can offer.