[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
#2

Lol, this looks awesome. Original and unique! Keep up the good work
Reply
#3

Thanks.
Hope someone will need this.
Reply
#4

awesome include great job dude
Reply
#5

Thanks :P

Ideas, etc. are welcome too.
Reply
#6

Quote:
Originally Posted by 8D.
Thanks :P

Ideas, etc. are welcome too.
For sure gotta use this for my server.Nice!
Reply
#7

well i would like to congrats you for your work..but i don't see the point of it..the only thing you can see is that when your friends are online or not...if you have put a chat room or something..
Reply
#8

You can send your friends messages. By Using SendFriendMessage(playerid,message[]).

The idead is based on Battle.net Buddy-System.
Reply
#9

Nicee
Reply
#10

Thanks

Would be great, to hear again from Zаўk™
Reply
#11

What are the command, i can't see any '/' commands...
Reply
#12

Quote:
Originally Posted by Ihsan_Cingisiz
What are the command, i can't see any '/' commands...
Its a include.. You will have to make commands by yourself

Anyways nice include
Reply
#13

does it save the friends?
Reply
#14

Quote:
Originally Posted by armyoftwo
does it save the friends?
Code:

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

So no you have to do it yourself by using a loop for example
Reply
#15

Nice system
Reply
#16

Realy nice But how you add friends on list ?

8/10
Reply
#17

Neat but not original.

http://www.xfire.com/video/17d1ea/
2 years old
Reply
#18

great system bro 10/10!
Reply
#19

Woah, awesome dude!
Reply
#20

would be awsome if some one had an FS or something to upload as well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)