Author Topic: need cmd !!!  (Read 3599 times)

0 Members and 3 Guests are viewing this topic.

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
need cmd !!!
« on: February 02, 2012, 10:05:10 am »
guys i need mute or unmute cmd and !spree !myspree plzzzz give me guys help me
Storm City Owner

Stormcity.smfnew.com

Offline SaFeeR

  • Street Thug
  • *
  • Posts: 37
  • Pawno Scripter
    • View Profile
    • PaK-ServeR Website
Re: need cmd !!!
« Reply #1 on: February 02, 2012, 12:30:36 pm »
spree system take from warcheif
and

Code: [Select]
enum pInfo
{
Muted
}

Code: [Select]
public OnPlayerDisconnect( playerid, reason )
{
PlayerInfo[playerid][Muted] = 0;
return 1;
}

Code: [Select]
if(strcmp(cmd,"mute",true) == 0)
{
if(!IsAuthorized(playerid,"bring")) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
{
new plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c mute [Nick/ID]");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
if(PlayerInfo[plr][Muted] == 0)
{
PlayerInfo[plr][Muted] = 1;
new str[256];
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;
}
else if(strcmp(cmd,"unmute",true) == 0)
{
if(!IsAuthorized(playerid,"bring")) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
{
new plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c mute [Nick/ID]");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
if(PlayerInfo[plr][Muted] == 1)
{
PlayerInfo[plr][Muted] = 0;
new str[256];
format(str,sizeof(str),"ADMIN %s unmuted %s...",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_WHITE,str);
SendClientMessage(plr,COLOR_RED,"You are free to talk...");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You cannot unmute him without being muted..");
}
}
}
return 1;
}

Onplayertext

Code: [Select]
if(PlayerInfo[playerid][Muted] == 1)
{
  new str[256];
format(str,sizeof(str),"%s was been kicked for revealing the bannana from his mouth..",gPlayers[playerid]);
SendClientMessageToAll(COLOR_WHITE,str);
Kick(playerid);
  return 0;
}
If You Like My Scripting Like My Page


Offline Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: need cmd !!!
« Reply #2 on: February 02, 2012, 12:59:47 pm »
SaFeer Nice Cmd !
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline RasikhQadeer

  • Street Thug
  • *
  • Posts: 49
  • Hero_Great! The Great Scripter!
    • View Profile
Re: need cmd !!!
« Reply #3 on: February 02, 2012, 01:22:28 pm »
lol i cant take the spre cmd from warchiefs it has soo many functions i it don know how to update for gups :-\

Offline SaFeeR

  • Street Thug
  • *
  • Posts: 37
  • Pawno Scripter
    • View Profile
    • PaK-ServeR Website
Re: need cmd !!!
« Reply #4 on: February 02, 2012, 02:12:20 pm »
this is working in my server
download my new v1.5
If You Like My Scripting Like My Page


Offline RasikhQadeer

  • Street Thug
  • *
  • Posts: 49
  • Hero_Great! The Great Scripter!
    • View Profile
Re: need cmd !!!
« Reply #5 on: February 02, 2012, 07:04:17 pm »
I Dont know how can i help jimmy WFt

Offline Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: need cmd !!!
« Reply #6 on: February 02, 2012, 09:04:28 pm »
Jimmy Check Your pm !
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!