SA-MP Forums Archive
[FilterScript] Groups Script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Groups Script (/showthread.php?tid=274514)

Pages: 1 2 3 4


Re: Groups Script - Ronaldo_raul™ - 26.10.2011

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..!


Re: Groups Script - Ronaldo_raul™ - 26.10.2011

Hey does this save the groups..??


Re: Groups Script - Cpt.Markus - 26.10.2011

thanks rep added xD


Re: Groups Script - Cpt.Markus - 26.10.2011

Код:
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


Re: Groups Script - IstuntmanI - 26.10.2011

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;
}



Re: Groups Script - Cpt.Markus - 26.10.2011

thanks rep added xD


Re: Groups Script - Lorenc_ - 31.10.2011

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


Re: Groups Script - Speed - 03.11.2011

Is this a saving group after ongamemodeexit


Re: Groups Script - awsomedude - 15.02.2012

how do the groups save


Re: Groups Script - John Rockie - 03.03.2012

Do the groups get destroys when the leader disconnects?


Re: Groups Script - NeTuddMeg - 03.03.2012

Great, but make a group list with Dialog pl0x.


Re: Groups Script - NickTaSpy - 03.03.2012

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?


Re: Groups Script - Guitar - 04.03.2012

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;
}
^^


Re: Groups Script - Paul_Saint - 06.03.2012

Its the same as crazybob cops and robbers.

+rep.


Re: Groups Script - antonisrodos94 - 06.03.2012

save no?>


Re: Groups Script - SsHady - 14.03.2012

Wow nice Script Dude1


Re: Groups Script - SkizzoTrick - 14.03.2012

Nice!


Re: Groups Script - xVaDe_cLiimb - 14.03.2012

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


Re: Groups Script - SpiderWalk - 14.03.2012

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


Re: Groups Script - Lordzy - 26.03.2012

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