14.06.2010, 14:58
Hey Guys!
I want to release my first include, namely a friendsystem.
So lets start:
Features:
Functions:
Add a Friend (name) to your(playerid) friendlist.
Delete a Friend (name) from your(playerid) friendlist.
Delete your(playerid) full friendlist.
Shows your friendlist with offline / online status of your Friends.
Sends a message(message[]) to all of your(playerid) friends, and yourself.
if Yes - returns 1
if No - returns 0
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!
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[])
Код:
DeleteFriend(playerid,name[])
Код:
DeleteAllFriends(playerid)
Код:
ShowFriendListForPlayer(playerid)
Код:
SendFriendMessage(playerid,message[])
Код:
IsPlayerAlreadyAFriend(playerid,name[])
if No - returns 0
Код:
GetFriendBySlot(playerid,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!