[INC] Friendsystem by 8D. -
8D. - 14.06.2010
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!
Re: [INC] Friendsystem by 8D. -
dcmd_crash - 14.06.2010
Lol, this looks awesome. Original and unique! Keep up the good work
Re: [INC] Friendsystem by 8D. -
8D. - 14.06.2010
Thanks.
Hope someone will need this.
Re: [INC] Friendsystem by 8D. -
vyper - 14.06.2010
awesome include
great job dude
Re: [INC] Friendsystem by 8D. -
8D. - 14.06.2010
Thanks :P
Ideas, etc. are welcome too.
Re: [INC] Friendsystem by 8D. -
Zh3r0 - 14.06.2010
Quote:
Originally Posted by 8D.
Thanks :P
Ideas, etc. are welcome too.
|
For sure gotta use this for my server.Nice!
Re: [INC] Friendsystem by 8D. -
Aleron - 14.06.2010
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..
Re: [INC] Friendsystem by 8D. -
8D. - 14.06.2010
You can send your friends messages. By Using SendFriendMessage(playerid,message[]).
The idead is based on Battle.net Buddy-System.
Re: [INC] Friendsystem by 8D. -
Shadow_ - 14.06.2010
Nicee
Re: [INC] Friendsystem by 8D. -
8D. - 14.06.2010
Thanks
Would be great, to hear again from Zаўk™
Re: [INC] Friendsystem by 8D. -
Ihsan_Cingisiz - 15.06.2010
What are the command, i can't see any '/' commands...
Re: [INC] Friendsystem by 8D. -
Fj0rtizFredde - 15.06.2010
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
Re: [INC] Friendsystem by 8D. -
armyoftwo - 15.06.2010
does it save the friends?
Re: [INC] Friendsystem by 8D. -
8D. - 15.06.2010
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
AW: [INC] Friendsystem by 8D. -
Forbidden - 02.06.2011
Nice system
Re: [INC] Friendsystem by 8D. -
-Tony- - 02.06.2011
Realy nice But how you add friends on list ?
8/10
Re: [INC] Friendsystem by 8D. -
Joe Staff - 02.06.2011
Neat but not original.
http://www.xfire.com/video/17d1ea/
2 years old
Re: [INC] Friendsystem by 8D. -
Edvin - 03.06.2011
great system bro 10/10!
AW: [INC] Friendsystem by 8D. -
Julian12345 - 03.06.2011
Woah, awesome dude!
Re: [INC] Friendsystem by 8D. -
tony_fitto - 04.06.2011
would be awsome if some one had an FS or something to upload as well.