[FilterScript] Groups Script
#1

[FS]Groups


About this script
I've been bored the last few days and Weponz wanted me to make it so, I did . It took a good few hours because there where quite a few bugs that needed fixing but they got fixed eventually. It's good for gang servers, so you can message everyone etc. All it requires is ZCMD which you can download HERE.

Commands:
/groupcreate or /grc - Creates a group.
/groupleave or /grl - Leaves your current group.
/groupinvite or /gri - Invites a person to your group (Leader Only).
/groupleader or /grlead - Gives someone else the leader position (Leader Only).
/groupjoin or /grj - Joins someone's group or requests to join someone's group.
/groupkick or /grk - Kicks a member from the group (Leader Only).
/groupmessage or /gm - Sends a message to all of your group members.
/grouplist - Lists all members in a certain group.
/groups - Lists all groups

Screenshots



Credits
Me - Creating the script and some spawns.
Weponz- The ideas and helping me test

Download
Pastebin
Datafilehost
Reply
#2

cool
Reply
#3

Quote:
Originally Posted by xkirill
Посмотреть сообщение
cool
Cool


Nice.
Reply
#4

Awesome , i really really really wanted something like this , THANKS MAN !!!
(Gave you Reputtion )

Edit : Can i make this CMD :

pawn Код:
COMMAND:groupcreate(playerid, params[])
{
    if(group[playerid][gid] != -1) return SendClientMessage(playerid, 0xFF0000, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
    if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
    if(IsGroupTaken(params)) return SendClientMessage(playerid, 0xFF0000, "Group name is already in use!");
    CreateGroup(params, playerid);
    return 1;
}
only for admin lvl 1337 +


And how to make That groups Save on GMX ? , sorry for much questions but i really ned that Script
Reply
#5

Код:
COMMAND:groupcreate(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 1337)
{
    if(group[playerid][gid] != -1) return SendClientMessage(playerid, 0xFF0000, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
    if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
    if(IsGroupTaken(params)) return SendClientMessage(playerid, 0xFF0000, "Group name is already in use!");
    CreateGroup(params, playerid);
    return 1;
}
??
Reply
#6

grat job!
Reply
#7

Nice man
Reply
#8

Like it
Reply
#9

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Weponz- The ideas and helping me test
Urgh, now he's giving you guys ideas to make scripts for him? He's trying to copy other servers -.- now you went and made it like alot of server's have D:
Reply
#10

nice i suggest u group chat or something like that cmd too
Reply
#11

awesome work Killer i can see all around your best releases...!
Reply
#12

I love it

Nice Good FS Gonna use it to my server
Reply
#13

I like this FS
Reply
#14

Thanks guys, any suggestions would be great.
Reply
#15

not cahnge the name??
example /grc 3p >change to [3p]Horrible
if no i suggest to you.
Reply
#16

How to save the group members?
Reply
#17

can groups to be saved when server restarts?
Reply
#18

i need some help
i wanna make the
Код:
COMMAND:groupcreate(playerid, params[])
{
    if(group[playerid][gid] != -1) return SendClientMessage(playerid, 0xFF0000, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
    if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
    if(IsGroupTaken(params)) return SendClientMessage(playerid, 0xFF0000, "Group name is already in use!");
    CreateGroup(params, playerid);
    return 1;
}
for RCON Admin only because players will abuse it how i can make it ? i tried but i got errors
anyways can somebody guys make it?
Reply
#19

Код:
COMMAND:groupcreate(playerid, params[])
{
    if(IsPlayerAdmin(playerid)
    if(group[playerid][gid] != -1) return SendClientMessage(playerid, 0xFF0000, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
    if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
    if(IsGroupTaken(params)) return SendClientMessage(playerid, 0xFF0000, "Group name is already in use!");
    CreateGroup(params, playerid);
    return 1;
}
That maybe.
Reply
#20

thanks but it gives me errors :P
Код:
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(56) : error 001: expected token: ")", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)