[FilterScript] [FS] Cell Phone Script -- V5.0 Out Now!
#1

[anchor=top]Cellphone Script

It's a filterscript that enable's you to use a cellphone.
This is my third filterscript i ever created.
So it can have some little bugs (test results came out fine)

Content:
  • [iurl=#commands]Commands[/iurl]
  • [iurl=#info]Infomation[/iurl]
  • [iurl=#download]Download[/iurl]
  • [iurl=#edits]Edits[/iurl]
  • [iurl=#saving]Saving[/iurl]
  • [iurl=#log]Change Log[/iurl]
  • [iurl=#other]Other Things[/iurl]
[anchor=commands]Commands
_________________________________________________
All Versions
[b]/SMS <number> <text>[b]
With this command you can send a text message to the given number.
/pb, /phonebook
You get a list of phone numbers of all players.
/mpn, /myphonenumber
Shows your current telephone number
/ph, /phonehelp
See a list of all the commands in this filterscript
/pc, /phonecredits
See the credits of this filterscript Please don't remove
0.4 or Higher
/call <number>
Call a specified number
/pickup
Pickup the phone
/hangup
Hangup the phone

[anchor=info]Information
_________________________________________________
  • If the player connect then he gets a random phone number between 1000 and the 10000
  • If the player sends a message then all other players get "name: text (number)"
    Name The name of the player
    Text The text the player send
    Number The phone number of the player
  • If the player sends a privmsg the target gets the message "*** pm from sendername : text (number)"
    Sendername The name of the sender
    Text The text that the player has typed in after /pm
    Number The phone number of the sender
[anchor=download]Download
V 6.0 pastebin
V 5.0 pastebin
V 4.0 pastebin
V 3.0 pastebin
V 2.0 pastebin
V 1.0 pastebin

[anchor=edits]Edits
_________________________________________________
Only V5.0:
You can disable Save support by setting #define Save to 0.
All Versions:
You can change the cost of a SMS, change #define txtcost 1 to #define txtcost [price], and change price with your price

[anchor=saving]Saving
_________________________________________________
If Saving is enabled, it's saves your number to a file named "playername.txt" where name is the playername.

[anchor=log]Change log
_________________________________________________
V6.0
Changed the text color when you chat, it's now the default sa-mp color.
Fixed bugs reported by Rizard:
- /pickup does not have an animation
- SMS Showing the recievers name at the reciever.
Changed /phonehelp and /pc to show the new commands too (/pickup, /call, /hangup)
V5.0:
Fixed bugs reported by Rizard:
- Phone book showing 1 player,
- Bug in /phonebook and in /pb showing invalid number
Added save support
Changed Number Check, It's now checks on connect, not in a callback anymore
V4.0:
/call, /pickup and /hangup added
V3.0:
Animations added
V2.0:
Check added so nobody can have the same phone number
Some unused callbacks deleted
V1.0:
First public release

[anchor=other]Other Things
_________________________________________________
  • Please don’t delete credits
  • Please report bugs
  • I'm dutch so English is not my first language
[iurl=#top]Back to the top[/iurl]
Reply
#2

AWSOME! I was looking for one of these, would you like a mirror
Reply
#3

Wow this one is really nice
Reply
#4

Quote:
Originally Posted by Numhaken
AWSOME! I was looking for one of these, would you like a mirror
sure
Reply
#5

Mirror -

http://www.crazyhost.info/download.p...9Cellphone.rar
Reply
#6

Quote:
Originally Posted by G-sTyLeZzZ
nice script but this looks like pen1 or godfather
i made this by myself
Reply
#7

By reading it i've already found a bug.

Looked into the code right now and it confirmed it.

Try to loop trough all numbers of the connect player, otherwhise you could have the same number.

Reply
#8

Quote:
Originally Posted by Antironix
By reading it i've already found a bug.

Looked into the code right now and it confirmed it.

Try to loop trough all numbers of the connect player, otherwhise you could have the same number.

look first post
Reply
#9

Quote:
Originally Posted by Antironix
By reading it i've already found a bug.

Looked into the code right now and it confirmed it.

Try to loop trough all numbers of the connect player, otherwhise you could have the same number.
Right said, but wont be such helpful, as maybe it might get a number of a player who is
DISCONNECTED, which we dont want to happen, thats why I suggest using saving system,

dini, simple file functions.

Save the numbers being used already, then loop through them all
To check if the new number coming from the random statement, is matches,
if it does, return false. else return true.


EDIT:

On second thought, you better fix this script,
It might have a lot of bugs, while getting the own number,
NO ARRAYS of playerid? how you know it will get yours?
OnPlayerText returns false unless you talk, which causes bug all over the game,
When sending a message, your failure one is after the loop, which will be sent if the message success anyway..
So it should be after player's connect, but without any return so it wont cause the loop for stoping.
Reply
#10

Quote:
Originally Posted by Numhaken
View Post
can you send another link without crazyhost plz media fire or megaupload without crazyhost
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)