Posts: 727
Threads: 36
Joined: Jan 2010
Reputation:
0
Well I'm working on a Prison Script and I'm trying to create a system that you can smuggle phones.
But I can't figure out how to create a good and simple phone system.
Can anyone help me?
Posts: 727
Threads: 36
Joined: Jan 2010
Reputation:
0
I want to do it myself so I can learn scripting quicker.
Posts: 233
Threads: 48
Joined: Aug 2013
Reputation:
0
Basically you could make players have a place to buy phone,like somewhere in the prison,where they could take it.
And then they could sell it to other players,if that's something like your idea?
I mean,where do you want your players to get phones first?
Posts: 727
Threads: 36
Joined: Jan 2010
Reputation:
0
To smuggle it in the prison.
But I need to know how to create the call/sms system, I know how to create a smuggle point etc.
And with random numbers or so.
Posts: 727
Threads: 36
Joined: Jan 2010
Reputation:
0
Yeah, but I need to know how to write a call/sms system..
Posts: 727
Threads: 36
Joined: Jan 2010
Reputation:
0
I need it for Zcmd, can anyone please help me..
I Need to create a call/sms system + a random phone number combination.
Posts: 59
Threads: 8
Joined: Aug 2013
Reputation:
0
Hmm, never done this before but i'm pretty sure I know how to do it. Add a part to your enum that has pHasPhone and pPhoneNumber. If pHasPhone == 1, then make it generate a random number. Add something in OnPlayerText so if IsInACall == 1, then format then SendClientMessage. It shouldn't be too hard, if you need me to whip up a working example just ask.
Edit: I also recommend that you look at existing scripts and learn something from them.