SA-MP Forums Archive
[FilterScript] Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] (/showthread.php?tid=354595)



Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Sinner - 27.06.2012

Profile System

1. Introduction

I made this on request but the person ended up not paying me so now I'm releasing it publicly (ha!).

This system will allow you to make your own profile and let others see it. Profiles then can be used for a variety of things explained further. You can edit your profile at any time and it will automatically save to a MySQL database.

2. Features

a) Create your own profile and fill in (or leave blank) your personal details
Profiles consist of the following data:
1) Your sex
2) Your age
3) Your email
4) Your profile color
5) Your (in-game) phone number

Ofcourse the script can be adapted to hold more data.

b) View and/or like the profiles of other players
c) Call other players using their phone number or their ID => Call someone, they need to pick up => hang up when your done
d) Invite other players to your call (group calls) => they need to accept the call
e) Add friends to your friends list => invite a friend who needs to accept your request
f) Talk to your friends in-game without having to set up a private chat => all your friends will save to g database and your friends will instantly be loaded upon login => kinda like ********
h) Remove friends from your friends list

3. How to set up

1) Copy the script from pastebin and put it in your /filterscripts folder
2) add the filterscript to your server.cfg file
3) Open the script and edit your MySQL database details (line 32 to 35)
pawn Код:
// Edit this
#define SQL_HOST                ""
#define SQL_USER                ""
#define SQL_PASS                ""
#define SQL_DB                  ""
4) IMPORTANT: This script loads and saves instantly, there are no Callbacks such as "OnPlayerConnect" required for saving

5) This script requires sscanf2 (latest version) AND a MySQL plugin (latest version)

4. Credits

- Sinner : coding
- Dracoblue : dcmd
- ****** : sscanf2

5. Download

http://pastebin.com/C5tnbY2y

Screens:




Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Smokkr - 27.06.2012

This is good dude!Good job


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Littlehelper - 27.06.2012

Looks good.


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - JonnyDeadly - 27.06.2012

Nice release.


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - [GF]Logic - 27.06.2012

Great Good Job


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Neil. - 27.06.2012

Nice one, I like the 'likes' features too GJ!


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - WillyP - 27.06.2012

That's pretty cool


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - cree - 29.06.2012

does it have a coomand or how to get it working plz?? it compiled good just dont know how to set it up


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Rohit_Goswamy - 29.06.2012

I like it. I tested it out and looks to be bug free. I hope to see more work from you


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Lordzy - 29.06.2012

This is good.
Nice dialogs.


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Sinner - 29.06.2012

Quote:
Originally Posted by cree
Посмотреть сообщение
does it have a coomand or how to get it working plz?? it compiled good just dont know how to set it up
Check OnPlayerCommandText for all the commands, everything else you needed to know I explained.


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Kaperstone - 30.06.2012

Quote:
Originally Posted by Sinner
Посмотреть сообщение
4. Credits

- Sinner : coding
- Dracoblue : dcmd
- ****** : sscanf2
pawn Код:
#include <a_samp>
#include <a_mysql>
#include <sscanf2>
MySQL credits :X


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - $$inSane - 30.06.2012

nice one but the profile card system by pleomax was better
btw nice try


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - 'seraphin - 03.07.2012

Код:
#define SQL_HOST                                ""
#define SQL_USER                                ""
#define SQL_PASS                                ""
#define SQL_DB                                  ""
There must be what?


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Face9000 - 03.07.2012

Quote:
Originally Posted by 'seraphin
Посмотреть сообщение
Код:
#define SQL_HOST                                ""
#define SQL_USER                                ""
#define SQL_PASS                                ""
#define SQL_DB                                  ""
There must be what?
Your database host (use localhost if local),the database user name,the database password and the name of database.


Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - 'seraphin - 03.07.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Your database host (use localhost if local),the database user name,the database password and the name of database.


Код:
C:\Users\----\Desktop\serveur gta samp\filterscripts\hone.pwn(10) : fatal error 100: cannot read from file: "a_mysql"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Profiles [email, phone, FRIEND LISTS, calls + group calls, etc..] - Face9000 - 03.07.2012

You need the mysql include.Download it from this forum and recompile the script.