/moviestyle and /mute /unmute Command
#6

pawn Код:
new muted[MAX_PLAYERS];

CMD:mute(playerid, params[])
{
      if(sscanf(params,"u")) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [userid]
      Muted[params] = 1;
      return 1;
}

CMD:unmute(playerid, params[])
{
      if(sscanf(params,"
u")) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [userid]
      Muted[params] = 1;
      return 1;
}

OnPlayerText(playerid, text[])
{
     if(Muted[playerid] == 1) { return 0; }
     return 1;
}
I dont work with YCMD or STRCMP (+STRTOK), so use ZCMD for this...
Reply


Messages In This Thread
/moviestyle and /mute /unmute Command - by Blackazur - 08.09.2012, 13:29
Re: /moviestyle and /mute /unmute Command - by vIBIENNYx - 08.09.2012, 14:01
AW: /moviestyle and /mute /unmute Command - by Blackazur - 08.09.2012, 14:10
Re: /moviestyle and /mute /unmute Command - by Guest3598475934857938411 - 08.09.2012, 14:47
AW: /moviestyle and /mute /unmute Command - by Blackazur - 08.09.2012, 14:54
Re: /moviestyle and /mute /unmute Command - by Riddy - 08.09.2012, 15:22
Re: /moviestyle and /mute /unmute Command - by clarencecuzz - 08.09.2012, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)