RCON COmmands needed -
JAMMIEISFTW - 30.04.2012
ok in any, zcmd, dcmd, im not bothered...
Erm... Ok
i need a /noobwarn [ID]
(Witch basically warns someone for being a nub) I can do that though, if you cant. so don't worry.
/setscore [ID] [SCORE]
Sets the persons score...
Thanks, thats it :P
Re: RCON COmmands needed -
JAMMIEISFTW - 30.04.2012
Ohyea, and a command that goes
/adminsay [TEXT]
So it comes up as ( In on ingame chat, everyone can see... )
{FF0000}Admin Says: [TEXT]
Re: RCON COmmands needed -
Niko_boy - 30.04.2012
Alright as i prefer ZCMD here we go
pawn Код:
CMD:adminsay(playerid , params[])
{
if(IsPlayerAdmin(playerid)
{
//here goes all code
new string[128],pName[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid , -1 , "Add a message /adminsay <msg>");
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"%s: %s",pName,params);
SendClientMessageToAll(0xFFFFFF, string);
//-------
}else SendClientMessage(playerid , -1 , "You Not RCON admin");
return 1;
}
it works like if playerid who using command is RCON admin the command will work otherwise error message
Re: RCON COmmands needed -
JAMMIEISFTW - 01.05.2012
Mhmm, any more?
Re: RCON COmmands needed -
JAMMIEISFTW - 01.05.2012
Quote:
Originally Posted by Niko_boy
Alright as i prefer ZCMD here we go
pawn Код:
CMD:adminsay(playerid , params[]) { if(IsPlayerAdmin(playerid) { //here goes all code new string[128],pName[MAX_PLAYER_NAME]; if(isnull(params)) return SendClientMessage(playerid , -1 , "Add a message /adminsay <msg>"); GetPlayerName(playerid,pName,sizeof(pName)); format(string,sizeof(string),"%s: %s",pName,params); SendClientMessageToAll(0xFFFFFF, string); //------- }else SendClientMessage(playerid , -1 , "You Not RCON admin"); return 1;
EDIT: DIDNT WORK }
it works like if playerid who using command is RCON admin the command will work otherwise error message
|
C:\Users\Public\Documents\neww\filterscripts\zcmds cript.pwn(250) : warning 203: symbol is never used: "adminsay"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: RCON COmmands needed -
JAMMIEISFTW - 01.05.2012
HELLOOO? THE ABOVE DIDNT WORK>.... CAN ANYONE DO IT IN DCMD....
OOPS CAPS>..
Re: RCON COmmands needed -
doreto - 01.05.2012
Quote:
Originally Posted by JAMMIEISFTW
HELLOOO? THE ABOVE DIDNT WORK>.... CAN ANYONE DO IT IN DCMD....
OOPS CAPS>..
|
HELLOOOOO above its ZCMD command and to use it you need zcmd include but here for dcmd
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(adminsay, 8, cmdtext);
return 0;
}
dcmd_adminsay(playerid , params[])
{
if(IsPlayerAdmin(playerid)
{
//here goes all code
new string[128],pName[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid , -1 , "Add a message /adminsay <msg>");
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"%s: %s",pName,params);
SendClientMessageToAll(0xFFFFFF, string);
//-------
}else SendClientMessage(playerid , -1 , "You Not RCON admin");
return 1;
}
Re: RCON COmmands needed -
JAMMIEISFTW - 02.05.2012
I had used ZCMD For the Filterscript but OK
Re: RCON COmmands needed -
JAMMIEISFTW - 05.05.2012
Any more, anyone?
Re: RCON COmmands needed -
JAMMIEISFTW - 07.05.2012
Moreeeeeeee