3 Questions. - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3 Questions. (
/showthread.php?tid=475008)
3 Questions. -
Spydah - 10.11.2013
I'm currently creating a script and I need to know 3 things on ZCMD.
1. How do I create a simple random phone number creator?
2. How do I create a simple call system?
3. How do I create a simple SMS system?
IF you want to help, thanks already !
Re: 3 Questions. -
Loot - 10.11.2013
1)
pawn Код:
#define PHONE_NUMBER (100000 + random(899999)) //100.000 + random(899.999)) > promising to have 6 digits phone number
// set this variable when player enters a shop, etc..
var[playerid][phone] = PHONE_NUMBER;
2) There are TONS of those @ the forum, for instance:
http://forum.sa-mp.com/showthread.ph...ighlight=phone, educate yourself.
3) Same goes to 3 here, when you have your own phone system, simply create a cmd to enter a phone number, check if the phone number exist (the guy who owns that phone number online), if yes show a dialog which you can enter text and it'll send the message to him, etc...
Re: 3 Questions. -
Spydah - 11.11.2013
I'm gonna try
Thank you