[FilterScript] IRC Admin Script [SSCANF][Best Script]
#1

Hey guys, this is my newest creation/release.

This FilterScript is a personalized, expandable/working IRC Administrator script.

It basically is an admin system that can send commands in-game from IRC.

COMMANDS:
(You can type !cmds on IRC for the full list of commands.)
Код:
!players, !rcon, !fu, !oban, !aban, !mban, !okick, !akick, !mkick, !sosay, !sasay, !smsay, !osay, !asay, !msay, !say, !slap, !warn, !freeze, !unfreeze, !explode, !disarm, !resetcash, !giveallcash, !getname, !forums, !spawn, !fuck, !getinfo, !givecar, !allowweaps, !nametagson, !nametagsoff, !disallowweaps
I'll now give an explanation for a few specific commands.

!oban <playerid> <reason> will ban the specified player. (For Owners on IRC only. (+q))
!aban <playerid> <reason> will ban the specified player. (For Ops on IRC only. (+o))
!mban <playerid> <reason> will ban the specified player. (For Voice on IRC only. (+v))
!okick <playerid> <reason> will kick the specified player. (For Owner on IRC only. (+q))
!akick <playerid> <reason> will kick the specified player. (For Ops on IRC only. (+o))
!mkick <playerid> <reason> will kick the specified player. (For Voice on IRC only. (+v))
!sosay <msg> will send a message to the SA-MP Server as an anonymous owner. (For Owners on IRC only. (+q))
!sasay <msg> will send a message to the SA-MP Server as an anonymous admin. (For Ops on IRC only. (+o))
!smsay <msg> will send a message to the SA-MP Server as an anonymous moderator. (For Voice on IRC only. (+v))
!osay <msg> will send a message to the SA-MP Server as an owner. (For Owner on IRC only. (+q))
!asay <msg> will send a message to the SA-MP Server as an admin. (For Ops on IRC only. (+o))
!msay <msg> will send a message to the SA-MP Server as a moderator. (For Voice on IRC only. (+v))
!forums will send a message on IRC and to the SA-MP Server with the link of your forums. (For Voice on IRC only. (+v))

The rest of the commands are pretty self explanatory, so I'm not going to explain them.

ATTENTION: If you type for example on IRC "!explode" and it doesn't say anything, you must type "!explode <ID>"!

Currently, this admin script is the most up-to-date, best-working and non-bugged script. Please post your feedback of it in the comments, and remember to EDIT THE SCRIPT TO YOUR NEEDS.


DOWNLOAD:

Pastebin: http://pastebin.com/ZceY6fXm

Mediafire: http://www.mediafire.com/?3765r2e9l81dy14

EDIT: V1.1: Added a !respawncars command due to request.
EDIT 2: V1.2: Added a !givecar command and updated credits. Also added helpful comments in the script.
CREDITS:

NoahF for the script
****** for SSCANF
Incognito for the IRC plugin
SA-MP Team for SA-MP


Please do not sell, or release this without my written permission.
You may edit this script and change it however you like, but keep the credits please.

*NOTE* This script has been tested fully and it works perfectly.
Reply
#2

Nice Work
Reply
#3

Nice work.
Reply
#4

Thanks guys! +Thanks Nor15!
Reply
#5

Nice script (:
Reply
#6

Bro Nice work
I have it but I will update my version asap.
Reply
#7

Yeah, thanks bro.
Reply
#8

Good work bro.
Reply
#9

Thanks.
Reply
#10

awesome keep it up please
Reply
#11

can you make in it unban system please and how rcon sys work ?
Reply
#12

C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(42) : error 017: undefined symbol "IRC_SetIntData"
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(46) : error 017: undefined symbol "IRC_SetIntData"
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(177) : error 025: function heading differs from prototype
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(193) : error 025: function heading differs from prototype
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(206) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttempt")
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(217) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttemptFail")
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(247) : warning 235: public function lacks forward declaration (symbol "IRC_OnInvitedToChannel")
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(261) : warning 235: public function lacks forward declaration (symbol "IRC_OnKickedFromChannel")
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(286) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserKickedFromChannel")
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(331) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserRequestCTCP")
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(337) : error 017: undefined symbol "IRC_ReplyCTCP"
C:\Users\\Downloads\0.3x\0.3x\pawno\mots.pwn(342) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserReplyCTCP")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#13

pawn Код:
new string[18];
        new string2[230];
        new string3[80];
       
        format(string, sizeof(string), "IRC COMMANDS:");
        format(string2, sizeof(string2), "!players, !rcon, !fu, !oban, !aban, !mban, !okick, !akick, !mkick, !sosay, !sasay, !smsay, !osay, !asay, !msay, !say, !slap, !warn, !freeze, !unfreeze, !explode, !disarm, !resetcash, !giveallcash, !getname, !forums");
        format(string3, sizeof(string3), "!spawn, !fuck, !getinfo, !givecar");
 
        IRC_Say(botid, channel, string);
        IRC_Say(botid, channel, string2);
        IRC_Say(botid, channel, string3);
pawn Код:
IRCCMD:forums(botid, channel[], user[], host[], params[])
{
        new string29[128];
        new string30[128];
 
        if (IRC_IsVoice(botid, channel, user))
        {
                format(string29, 128, "Sign up at our forums today! http://www.teamzl.forumotion.com"); //change this to your forums
                format(string30, 128, "Sign up at our forums today! http://www.teamzl.forumotion.com"); //Change to your forums
       
                IRC_GroupSay(groupID, channel, string29);
       
                SendClientMessageToAll(0x00E800C8, string30);
        }
        return 1;
}
* Revo cries

Someone should take a course for code optimization!
(
Reply
#14

UPDATED TO V1.3
Reply
#15

What's in the new version? It doesn't say.
Reply
#16

I added some helpful/useful new commands.
Reply
#17

can i add this irc script in my admin system? i will give your credits....
Reply
#18

Yes you may but give credit.
Reply
#19

can't work

[16:29:25] Error: Function not registered: 'IRC_SetIntData'
[16:29:25] Error: Function not registered: 'IRC_ReplyCTCP'
Reply
#20

Nice Work
_____________________________________

My Work:
[FilterScript] + [MAP] Admin Island 0.3x by Joksa
[FilterScript] + [MAP] LSPD by Joksa
LSPD Gate for Beginners
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)