[FilterScript] Easy-To-Handle Adminsystem by Logan Adams aka. McBastard112
#1

Hi all,

before I go in about 3 hours for 2 weeks on vacation,
I thought you had me as long as it can be something.

There is an admin system that is completely controlled only through dialogue.
Does clicking on the player to be administrated in the tab bar and then U can kick,ban, heal, kill spectate, etc.
Furthermore, you can change usethe command /controlpanel to change the hostname, Mode, restart the server,
Stop the server, etc.

More in this Video:
[ame="http://www.youtube.com/watch?v=PJBReVdcpAo&feature=g-upl"]HERE[/ame]

What you need:

You need only the include OCMD: This is the "command type" I have used.

Notices:
It may be that this script does not filter other is clear. Invite it is always best to first before your streamer,
because it myself when I was already using a streamer and the filter script.
You must be inside the © and the credits.
Furthermore, the re-release of this filter scripts forbidden and only with my permission to "allow".

Pastebin


Much fun

MFG
Reply
#2

What's OCMD? Do you know where I can get OCMD from?
Reply
#3

What is OCMD
Reply
#4

If you can't get OCDM, just convert it to ZCMD/YCMD/whatever..
Thanks for the system, bro.
Reply
#5

Hi there,
first to answer your question what OCMD is. It's is a CMD Include just like ZCMD,DCMD etc.
Here is the code:
Quote:

/*---------------------------------------

/--------\ /--------\ /\
| | | | / \
| | | | / \ |-----
| | |--------/ / \ |
| | | |--------| \----\
| | | | | |
\--------/ | | | -----/

OBJECTSTREAMER & MAPEDITOR
VERSION 5.1.1
OCMD MODULE

---------------------------------------*/

/*
OCMD 2.0.0
by kleinerOpa
best command-solution for sa:mp
supports samp 0.2X, 0.3a without OCMD_CHECK_UPDATE function
supports samp 0.3b, 0.3c
WEB: www.kleiner-opa.de
ICQ: 611064955
*/

#include <a_samp>
#if defined OCMD_CHECK_UPDATE
#tryinclude <a_http>
#if !defined HTTP
#error OCMD_CHECK_UPDATE only works with a_http.inc
#undef OCMD_CHECK_UPDATE
#endif
#endif

forward ocmdOnPlayerCommandText(playerid,cmdtext[]);
#if defined OCMD_BEFORE_CALLBACK
forward BeforePlayerCommandText(playerid,cmdtext[]);
#endif
#if defined OCMD_CHECK_UPDATE
forward ocmdCheckUpdate();
forward ocmdCheckUpdate2(index,response_code,data[]);
#endif

#if defined OCMD_BEFORE_CALLBACK
new boolcmdBeforeCallback;
#endif
#if defined OCMD_BEFORE_CALLBACK || defined OCMD_CHECK_UPDATE
new boolcmdInit;
#endif

#define ocmd:%1(%2) forward ocmd_%1(%2);\
public ocmd_%1(%2)

#define OCMD_VERSION "2.0.0"

public OnPlayerCommandText(playerid,cmdtext[])
{
#if defined OCMD_BEFORE_CALLBACK || defined OCMD_CHECK_UPDATE
if(!ocmdInit)
{
#if defined OCMD_BEFORE_CALLBACK
if(funcidx("BeforePlayerCommandText")!=-1)ocmdBeforeCallback=true;
#endif
#if defined OCMD_CHECK_UPDATE
SetTimer("ocmdCheckUpdate",(60*1000),false);
SetTimer("ocmdCheckUpdate",(60*60*1000),true);
#endif
ocmdInit=true;
}
#endif
new ocmdStr[32]="ocmd_",
i=1,
#if defined OCMD_COMMAND_LOG
ocmdName[MAX_PLAYER_NAME],
#endif
boolcmdNoParams;
#if defined OCMD_COMMAND_LOG
GetPlayerName(playerid,ocmdName,sizeof ocmdName);
printf("[cmd] [%s]: %s",ocmdName,cmdtext);
#endif
#if defined OCMD_BEFORE_CALLBACK
if(ocmdBeforeCallback&&!CallLocalFunction("BeforeP layerCommandText","ds",playerid,cmdtext))return 1;
#endif
for(;i<128;i++)
{
if(!cmdtext[i]||cmdtext[i]==' ')
{
if(!cmdtext[i]||!cmdtext[i+1])ocmdNoParams=true;
break;
}
ocmdStr[i+4]=tolower(cmdtext[i]);
}
if(!ocmdNoParams&&CallLocalFunction(ocmdStr,"ds",p layerid,cmdtext[i+1]))return 1;
if(ocmdNoParams&&CallLocalFunction(ocmdStr,"ds",pl ayerid," "))return 1;
return CallLocalFunction("ocmdOnPlayerCommandText","ds",p layerid,cmdtext);
}

#if defined OCMD_CHECK_UPDATE
public ocmdCheckUpdate()
{
HTTP(1,HTTP_GET,"www.kleiner-opa.de/sc/ocmd.txt","","ocmdCheckUpdate2");
}
public ocmdCheckUpdate2(index,response_code,data[])
{
if(strlen(data)&&strcmp(OCMD_VERSION,data)!=0)
{
new ocmdStr[128];
format(ocmdStr,sizeof ocmdStr,"An update for OCMD is available (version %s) - www.kleiner-opa.de",data);
print(ocmdStr);
for(new i;i<MAX_PLAYERS;i++)if(IsPlayerAdmin(i))SendClient Message(i,0xD3D3FFFF,ocmdStr);
}
}
#endif

#define OnPlayerCommandText ocmdOnPlayerCommandText

We in Germany use it most. Better and faster than dcmd.
Thanks for the positiv feedback.
Reply
#6

/push
Reply
#7

/push
Reply
#8

Update:

Version 1.1:
-Dialog Bugs fixed
-Spectate Bugs fixed
-added new functions at /controlpanel. Now you can insert at Restart/Exit Server the interval until the server will be restarted/shutten down

New Pastebin link added at first post....
Reply
#9

No Offence but this is crap probaly the worst I have seen.
Reply
#10

Quote:
Originally Posted by callum9119
Посмотреть сообщение
No Offence but this is crap probaly the worst I have seen.
Could you not give him constructive words instead of just criticising it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)