29.03.2012, 21:56
Hello everyone, I have seen a few methods on how to save things to logs such as Kicks and Bans etcetera.
I would just like to know, what's the best method to do this?
For example.
If I was to save this to a log, so I could see what groups people had created after they typed /groupcreate.
What's the best way to do it?
Thanks.
I would just like to know, what's the best method to do this?
For example.
If I was to save this to a log, so I could see what groups people had created after they typed /groupcreate.
What's the best way to do it?
pawn Код:
dcmd_groupcreate(playerid,params[])
{
#pragma unused params
if(group[playerid][gid] != -1) return SendClientMessage(playerid, COLOR_SANDYBROWN, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, COLOR_SANDYBROWN, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
if(IsGroupTaken(params)) return SendClientMessage(playerid, COLOR_BRIGHTRED, "Group name is already in use!");
CreateGroup(params, playerid);
return 1;
}