SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Filterscripts (https://forum.sa-mp.com/forumdisplay.php?f=17)
-   -   [FilterScript] Simple Friend System (https://forum.sa-mp.com/showthread.php?t=287688)

Shelby 04/10/2011 01:26 PM

Simple Friend System
 
Informations
Filterscript that lets you have a system of friends chat, the player can add / remove and chat with friends.
When the player connects to the server, it's send a message to online friends that player joined(or quit).

Commands
/friend [targetid] - Invite a player to become your friend;
/myfriends- Show your online friends;
/deletefriend [targetid] - Delete a friend.
/msg - Send a message to a friend(or by clicking on TAB).
/msn - Send a group message. (to all friends online)
/helpfs- Show in-game commands.

Thanks to
Double-O-Seven - DOF2 Fast INI file system.
****** - Efficient and Powerful sscanf & foreach.
ZeeX - ZCMD Command Processor.
SA-MP Team

Images
http://i51.tinypic.com/8wy3rn.png
receiving an invitation
http://i51.tinypic.com/2u965hd.png
when player connects
http://i55.tinypic.com/2i6dkpg.png
checking friends online
http://i53.tinypic.com/3464zet.png
sending a message

Requirements
Create "SFSUsers" folder in scriptfiles.

Download
Only .pwn - Pastebin
.Amx & .pwn - Solidfiles
DOF2 - forum.sa-mp
ZCMD - forum.sa-mp
sscanf - forum.sa-mp
foreach - forum.sa-mp

suhrab_mujeeb 04/10/2011 01:37 PM

Re: Simple Friend System
 
Nice but can it be like a group chat or something, example if 3 friends are online then /msg sends a message to all of the online friends?

Shelby 04/10/2011 01:50 PM

Re: Simple Friend System
 
Quote:

Originally Posted by suhrab_mujeeb (Post 1441468)
Nice but can it be like a group chat or something, example if 3 friends are online then /msg sends a message to all of the online friends?

Thank you. Yes, i updated pastebin link with /msn command, it sends a message to all friends online(of the player).

WoodPecker 04/10/2011 01:58 PM

Re: Simple Friend System
 
Wow amazing work, i will use this one for sure, thank you mate, 3rep4u.

suhrab_mujeeb 04/10/2011 02:01 PM

Re: Simple Friend System
 
Quote:

Originally Posted by Larceny (Post 1441490)
Thank you. Yes, i updated pastebin link with /msn command, it sends a message to all friends online(of the player).

Yeah, now that's what was needed. Great job, though I can test it. But seeing the features it definitely is a nice script.

Naruto_Emilio 04/10/2011 03:03 PM

Re : Simple Friend System
 
This is awesome, i like this release :D. thanks for sharing it.

Vai_Besta 04/10/2011 04:38 PM

Re: Simple Friend System
 
awesome (:

Markx 04/10/2011 04:49 PM

Re: Simple Friend System
 
Looks pretty awesome. 9/10


All times are GMT. The time now is 03:46 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.