I need mute script with timer
#1

Can someone give me that script and to save when player disconnect not to lose his mute
Reply
#2

It depends on what you use to save, do you use YINI to save player stats?
Reply
#3

Yes, i use YINI
Reply
#4

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]);
Reply
#5

If what Tony said didn't work, show us your mute command.
Reply
#6

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.
Reply
#7

I dont need a leasson how to save mute time, i need MUTE script
Reply
#8

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.
Reply
#9

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?
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)