SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 09/01/2013, 05:27 PM   #1
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Simple Cellphones

Simple Cellphones
** by LarzI aka. zCourge **

FLAW FIXED - LINKS UPDATED.

What does this do?
This FS simply adds the ability to "call" another player. This is simply just a PM-like system where you "call" the player, then freely chat with him, and then hang up when you're done. Everything you write (except commands) while you're in a "phonecall", will be sent to you and the player you've called only.

Listed features:
  • Personal phone numbers - all stored in a single file using tags (y_ini), created when you initialize the filterscript for the first time (writes n numbers into the file based, where n = MAX_PLAYERS
  • Private phone number (only to be called by people who has your number in their phonebooks)
  • OnPlayerClickPlayer to call players (Tab > Double-click)
  • Dialog-based and command based calling
  • Dynamic phone-book where you can add, remove or call contacts (contact names doesn't have to be their in-game name
  • A configuration file where you can enable or disable private phones and the OnPlayerClickPlayer-feature
  • Animations

Possible future feature(s):
  • Let owners configure wether they want players to get their phones on connect, or have to buy them, by setting an option in the configuration file
  • New: Let owners configure wether they want file-saving or SQL-saving, and implement mysql.

What can this be good for?
This would be suitable for RP-servers, I guess.

How do I use it?
You need to get the required plugins and includes (listed below), then just simply put the cellphone.amx into the filterscripts folder, and add "cellphone" to the filterscript line in the server.cfg file.

Required plugins and includes:
  • Includes:
    • y_ini. (part of YSI)
    • y_iterate (part of YSI)
    • zcmd
    • sscanf2 (along with the plugin mentioned below)
  • Plugins:
    • sscanf

Edit: I have no idea why I said this FS used Whirlpool, as it doesn't. Tiny error, I apologize.

I used this FS and found a bug/glitch - what do I do?
Either post a reply here or send me a PM, and I'll try to fix it as soon as possible.

Downloads
  • Mirror(s):
    • To be added if provided

Thanks to:
  • ****** for YSI, sscanf and whirlpool
  • Zeex for ZCMD
  • Slice for tutoring on bit-flags (used in script)

Enjoy!
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________



Last edited by LarzI; 16/01/2013 at 03:14 PM.
LarzI is offline   Reply With Quote
Old 09/01/2013, 07:28 PM   #2
DarkyTheAngel
Big Clucker
 
DarkyTheAngel's Avatar
 
Join Date: Jan 2012
Location: Narnia
Posts: 130
Reputation: 44
Default Re: Simple Cellphones

Nice one buddy.Good job.
__________________
DarkyTheAngel is offline   Reply With Quote
Old 09/01/2013, 07:43 PM   #3
Alex Magaņa
High-roller
 
Alex Magaņa's Avatar
 
Join Date: Oct 2012
Location: 𝕭𝖗𝖔𝖙𝖍𝖊𝖗𝖍𝖔𝖔𝖉
Posts: 2,144
Reputation: 218
Default Re: Simple Cellphones

Cool Keep up!
__________________

HOME --- FORUMS --- DISCORD --- SERVER
SAMH: Prop Hunt server is coming soon!
Alex Magaņa is offline   Reply With Quote
Old 10/01/2013, 04:28 AM   #4
[HK]Ryder[AN]
High-roller
 
[HK]Ryder[AN]'s Avatar
 
Join Date: Jan 2012
Location: New Delhi, India
Posts: 1,196
Reputation: 362
Default Re: Simple Cellphones

Nice one larzi.
__________________


[HK]Ryder[AN] is offline   Reply With Quote
Old 10/01/2013, 04:42 AM   #5
fanta291327
Huge Clucker
 
Join Date: Jan 2013
Posts: 276
Reputation: 26
Default Re: Simple Cellphones

Really nice job
fanta291327 is offline   Reply With Quote
Old 13/01/2013, 04:12 AM   #6
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: Simple Cellphones

- ignore -
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________



Last edited by LarzI; 16/01/2013 at 03:14 PM.
LarzI is offline   Reply With Quote
Old 13/01/2013, 04:49 AM   #7
Anak
Gangsta
 
Anak's Avatar
 
Join Date: Jul 2012
Location: Pakistan
Posts: 819
Reputation: 45
Default Re: Simple Cellphones

sounds cool bro
__________________
мы любим Вас Путина !! мы лучшие!
Anak is offline   Reply With Quote
Old 13/01/2013, 08:38 AM   #8
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,180
Reputation: 311
Default Re: Simple Cellphones

This is good, I like it, can see the work you put in !
Also:
Quote:
Originally Posted by LarzI
[i]n[/n]
Fail, lol
RajatPawar is offline   Reply With Quote
Old 13/01/2013, 08:49 AM   #9
RedCrossER
Huge Clucker
 
Join Date: Nov 2012
Posts: 274
Reputation: 8
Default Re: Simple Cellphones

Good work mate
RedCrossER is offline   Reply With Quote
Old 13/01/2013, 11:29 AM   #10
zJordioz
Big Clucker
 
zJordioz's Avatar
 
Join Date: Jan 2013
Location: 01278
Posts: 57
Reputation: 2
Default Re: Simple Cellphones

Nice one
__________________
zJordioz - Jordiath
zJordioz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A simple job 0utLaW_ Scripting Help 1 02/10/2012 04:20 PM
[SIMPLE] Creating a 1 minute countdown [SIMPLE] ShawtyyMacJunior Scripting Help 3 28/07/2012 12:29 AM
1 Simple question So i want 1 simple answer Jay. Help Archive 2 15/05/2010 01:16 PM


All times are GMT. The time now is 07:33 AM.


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