SA-MP Forums Archive
Phone System? - 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: Phone System? (/showthread.php?tid=292309)



Phone System? - seanny - 23.10.2011

How do I create a Phone system, I searched but never found one, If Possible Even help me make it so that, the player has to buy a sim card and credit points before making a call to anyone (exept 911)


Re: Phone System? - grand.Theft.Otto - 23.10.2011

You would have to create a good amount of global variables, like:

Код:
HasPhone[playerid]
HasSimCard[playerid]
HasPhoneCredit[playerid]
Then set the variables to a true value (1) when they purchase a phone/credits/sim card.

You have to use a lot of ' if ' statements too for all of those global variables.