Cellphone Script
It's a filterscript that enable's you to use a cellphone.
This is my second filterscript i ever created.
So it can have some little bugs (test results came out fine)
Commands:
| All versions: | |
| /SMS | With this command you can send a text message to the given number. |
| /pb or /phonebook | you get a list of phone numbers of all players. |
| /mpn or /myphonenumber | Shows your current telephone number |
| /ph or /phonehelp | See a list of all the commands in this filterscript |
| /pc or /phonecredits | See the credits of this filterscript |
| V4.0: | |
| /call | Call a specified number |
| /pickup | Pickup the phone |
| /hangup | Hangup the phone |
Other things:
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 playerIf 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
Links:
V 6.0 pastebin New
V 5.0 pastebin
V 4.0 pastebin
V 3.0 pastebin
V 2.0 pastebin
V 1.0 pastebin
Editable Things
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 , and change price with your price
Saving
If Saving is enabled, it's saves your number to a file named "playername.txt" where name is the playername.
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
Other Things
Please don’t delete credits
Please report bugs