[Include] [INC] Friendsystem by 8D.
#1

Hey Guys!

I want to release my first include, namely a friendsystem.

So lets start:

Features:
  • Adding Friends
  • Removing Friends
  • Friendlist with offline / online status (Red/Green)
  • Easy Edit Of Max friends per Player (per #define)
  • Delete your whole friendlist
  • Send Messages To All Of Your Friends
  • Off- and Online announcement for Friends.

Functions:

Код:
AddFriend(playerid,name[])
Add a Friend (name) to your(playerid) friendlist.

Код:
DeleteFriend(playerid,name[])
Delete a Friend (name) from your(playerid) friendlist.

Код:
DeleteAllFriends(playerid)
Delete your(playerid) full friendlist.

Код:
ShowFriendListForPlayer(playerid)
Shows your friendlist with offline / online status of your Friends.

Код:
SendFriendMessage(playerid,message[])
Sends a message(message[]) to all of your(playerid) friends, and yourself.

Код:
IsPlayerAlreadyAFriend(playerid,name[])
if Yes - returns 1
if No - returns 0

Код:
GetFriendBySlot(playerid,slot)
Checks, if a you(playerid) have a friend on a specific slot(slot).
If yes, it returns the Name of your friend on the slot.
If No, it returns the String(!!!) "-1" (no Integer!").
This function is for loading and saving your friends.



How to use this include

Use #include <8d-friendsystem-eng> in the head of your script
Use Freund_Connect(playerid), on Player Connect.
Use Freund_Login(playerid), when you loaded your friends.
Use Freund_Logout(playerid), on On Player Disconnect.


Downloads per pastebin:

GERMAN VERSION: http://pastebin.com/PaedPFps

ENGLISH VERSION: http://pastebin.com/kCAD3Fwf


Feedback and Bug Reports are Welcome!

Enjoy!







Reply


Messages In This Thread
[INC] Friendsystem by 8D. - by 8D. - 14.06.2010, 14:58
Re: [INC] Friendsystem by 8D. - by dcmd_crash - 14.06.2010, 15:02
Re: [INC] Friendsystem by 8D. - by 8D. - 14.06.2010, 15:05
Re: [INC] Friendsystem by 8D. - by vyper - 14.06.2010, 15:34
Re: [INC] Friendsystem by 8D. - by 8D. - 14.06.2010, 15:36
Re: [INC] Friendsystem by 8D. - by Zh3r0 - 14.06.2010, 15:41
Re: [INC] Friendsystem by 8D. - by Aleron - 14.06.2010, 15:42
Re: [INC] Friendsystem by 8D. - by 8D. - 14.06.2010, 15:45
Re: [INC] Friendsystem by 8D. - by Shadow_ - 14.06.2010, 20:34
Re: [INC] Friendsystem by 8D. - by 8D. - 14.06.2010, 21:03
Re: [INC] Friendsystem by 8D. - by Ihsan_Cingisiz - 15.06.2010, 14:37
Re: [INC] Friendsystem by 8D. - by Fj0rtizFredde - 15.06.2010, 16:46
Re: [INC] Friendsystem by 8D. - by armyoftwo - 15.06.2010, 16:48
Re: [INC] Friendsystem by 8D. - by 8D. - 15.06.2010, 17:35
AW: [INC] Friendsystem by 8D. - by Forbidden - 02.06.2011, 20:23
Re: [INC] Friendsystem by 8D. - by -Tony- - 02.06.2011, 20:26
Re: [INC] Friendsystem by 8D. - by Joe Staff - 02.06.2011, 22:24
Re: [INC] Friendsystem by 8D. - by Edvin - 03.06.2011, 12:52
AW: [INC] Friendsystem by 8D. - by Julian12345 - 03.06.2011, 12:57
Re: [INC] Friendsystem by 8D. - by tony_fitto - 04.06.2011, 03:25
Re: [INC] Friendsystem by 8D. - by Lorenc_ - 04.06.2011, 03:31
Re: [INC] Friendsystem by 8D. - by tony_fitto - 04.06.2011, 03:33
Re: [INC] Friendsystem by 8D. - by BASITJALIL - 04.06.2011, 03:50

Forum Jump:


Users browsing this thread: 5 Guest(s)