Author Topic: i need commands pawno...  (Read 4959 times)

0 Members and 1 Guest are viewing this topic.

Offline (RD)BlackZoom

  • Street Thug
  • *
  • Posts: 3
    • View Profile
i need commands pawno...
« on: May 03, 2014, 09:47:10 pm »
please i need script pawno /c mute, /c unban

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: i need commands pawno...
« Reply #1 on: May 04, 2014, 10:40:56 am »
Dude !!! Its For SQ
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline    hind

  • Street Thug
  • *
  • Posts: 1
    • View Profile
Re: i need commands pawno...
« Reply #2 on: May 04, 2014, 03:48:34 pm »
[pawn]if (strcmp(cmd, "mute", true) == 0) {
          if (IsPlayerAdmin(playerid)) {
         tmp = strtok(cmdtext, idx);
         newvar = FindPlayerIDFromString(tmp);
         if (!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_GREEN, "USAGE: /c jail <name/id>");
         } else {
            new string[256];
            format(string, 256, "Admin [ %s ] has jailed [ %s ]!", gPlayers[ playerid ], gPlayers[ newvar ]);
            SendClientMessageToAll(COLOR_YELLOW, string);
            TogglePlayerControllable(newvar, 0);
         }
         } else {
            SendClientMessage(playerid, RED, " You have not access to use the command!");
         }
      return 1;[/pawn]

Rocky 26722

  • Guest
Re: i need commands pawno...
« Reply #3 on: May 04, 2014, 03:54:24 pm »
[pawn]if (strcmp(cmd, "mute", true) == 0) {
          if (IsPlayerAdmin(playerid)) {
         tmp = strtok(cmdtext, idx);
         newvar = FindPlayerIDFromString(tmp);
         if (!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_GREEN, "USAGE: /c jail <name/id>");
         } else {
            new string[256];
            format(string, 256, "Admin [ %s ] has jailed [ %s ]!", gPlayers[ playerid ], gPlayers[ newvar ]);
            SendClientMessageToAll(COLOR_YELLOW, string);
            TogglePlayerControllable(newvar, 0);
         }
         } else {
            SendClientMessage(playerid, RED, " You have not access to use the command!");
         }
      return 1;[/pawn]

Man This Is Jail Cmds
« Last Edit: May 04, 2014, 03:56:51 pm by Rocky 26722 »

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: i need commands pawno...
« Reply #4 on: May 05, 2014, 01:57:33 am »
He just change /c jail to /c mute
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline Erik

  • Street Thug
  • *
  • Posts: 17
    • View Profile
Re: i need commands pawno...
« Reply #5 on: May 05, 2014, 03:03:21 pm »
OnPlayerCommandText

Code: [Select]
else if(strcmp(cmd,"mute",true) == 0)
{
 
new plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "-> Please login!." );
      {
        if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
        else if ( !IsAuthorized( playerid, "mute" ) ) SendClientMessage( playerid, COLOR_RED, "-> Not have access to the command! :P!" );
        else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c mute [Nick/ID]" );
else {
if(PlayerInfo[plr][Muted] == 0)
{
PlayerInfo[plr][Muted] = 1;
format(str,sizeof(str),"ADMIN %s Muted %s for a long time...",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_WHITE,str);
SendClientMessage(plr,COLOR_RED,"Stop talking or you will be kicked...");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You cannot mute him 2 times..");
}
}
}
return 1;
}


OnPlayerText

   
Code: [Select]
if(PlayerInfo[playerid][Muted] == 1)
{
    new str[256];
format(str,sizeof(str),"Auto-Kick Player:[ %s ] Reason:[ Mute Evader ]",gPlayers[playerid]);
SendClientMessageToAll(COLOR_Yellow,str);
Kick(playerid);
  return 0;
}

On TOP!

Code: [Select]
enum pInfo
{
Password[ MAX_PASS_SIZE +1 ],
Logged,
Level,
Skinid,
Stats,
Muted

« Last Edit: May 05, 2014, 03:06:23 pm by Erik »

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: i need commands pawno...
« Reply #6 on: May 05, 2014, 03:06:22 pm »
Hahah fucking idiots made my day


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: i need commands pawno...
« Reply #7 on: May 05, 2014, 03:30:56 pm »
OnPlayerCommandText

Code: [Select]
else if(strcmp(cmd,"mute",true) == 0)
{
 
new plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "-> Please login!." );
      {
        if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
        else if ( !IsAuthorized( playerid, "mute" ) ) SendClientMessage( playerid, COLOR_RED, "-> Not have access to the command! :P!" );
        else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c mute [Nick/ID]" );
else {
if(PlayerInfo[plr][Muted] == 0)
{
PlayerInfo[plr][Muted] = 1;
format(str,sizeof(str),"ADMIN %s Muted %s for a long time...",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_WHITE,str);
SendClientMessage(plr,COLOR_RED,"Stop talking or you will be kicked...");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You cannot mute him 2 times..");
}
}
}
return 1;
}


OnPlayerText

   
Code: [Select]
if(PlayerInfo[playerid][Muted] == 1)
{
    new str[256];
format(str,sizeof(str),"Auto-Kick Player:[ %s ] Reason:[ Mute Evader ]",gPlayers[playerid]);
SendClientMessageToAll(COLOR_Yellow,str);
Kick(playerid);
  return 0;
}

On TOP!

Code: [Select]
enum pInfo
{
Password[ MAX_PASS_SIZE +1 ],
Logged,
Level,
Skinid,
Stats,
Muted
LOL!
I am NE.CrystalBlue!!!
Quote
i cant able to understand