[FilterScript] Groups Script
#21

Quote:
Originally Posted by Cpt.Markus
Посмотреть сообщение
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.
pawn Код:
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;
}
Try this and works +rep appreciated..!
Reply
#22

Hey does this save the groups..??
Reply
#23

thanks rep added xD
Reply
#24

Код:
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 001: expected token: ")", but found ";"
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
still got errors :P
Reply
#25

Quote:
Originally Posted by Cpt.Markus
Посмотреть сообщение
Код:
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 001: expected token: ")", but found ";"
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
still got errors :P
Change
Код:
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;
}
to
Код:
COMMAND:groupcreate( playerid, params[ ] )
{
	if( !IsPlayerAdmin( playerid ) )
		return SendClientMessage( playerid, 0xFF0000FF, "You are not RCON Admin !" );

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

thanks rep added xD
Reply
#27

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Thanks guys, any suggestions would be great.
Shoot Weponz in the head is one
Reply
#28

Is this a saving group after ongamemodeexit
Reply
#29

how do the groups save
Reply
#30

Do the groups get destroys when the leader disconnects?
Reply
#31

Great, but make a group list with Dialog pl0x.
Reply
#32

Quote:
Originally Posted by LZLo
View Post
i'm going to use it on my server& i'll add a save system for it.
Can you help me to make it saveable?
Reply
#33

Good job, I love it and here I made a "grouphelp" command for those who will forget the commands:

pawn Code:
COMMAND:grouphelp(playerid, params[])
{
    SendClientMessage(playerid, 0xFF0000, "/groupcreate or /grc - Creates a group.");
    SendClientMessage(playerid, 0xFF0000, "/groupleave or /grl - Leaves your current group.");
    SendClientMessage(playerid, 0xFF0000, "/groupinvite or /gri - Invites a person to your group (Leader Only).");
    SendClientMessage(playerid, 0xFF0000, "/groupleader or /grlead - Gives someone else the leader position (Leader Only).");
    SendClientMessage(playerid, 0xFF0000, "/groupjoin or /grj - Joins someone's group or requests to join someone's group.");
    SendClientMessage(playerid, 0xFF0000, "/groupkick or /grk - Kicks a member from the group (Leader Only).");
    SendClientMessage(playerid, 0xFF0000, "/groupmessage or /gm - Sends a message to all of your group members.");
    SendClientMessage(playerid, 0xFF0000, "/grouplist - Lists all members in a certain group.");
    SendClientMessage(playerid, 0xFF0000, "/groups - Lists all groups");
    return 1;
}
^^
Reply
#34

Its the same as crazybob cops and robbers.

+rep.
Reply
#35

save no?>
Reply
#36

Wow nice Script Dude1
Reply
#37

Nice!
Reply
#38

Nice! Just what i was looking for! Perfect! ill rep!


EDIT:
Can you set like , Spawn Group Point, So when i creategroup i can do /setgroupspawn

And when group do /gs or /gspawn they spawn on group spawn xD :P


,Thanks in advance
Reply
#39

Suggestion:Make saving system with MySQL and it will be PERFECT!
Reply
#40

Can You Make Groups Saving System?
It Would Be More Better Then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)