-
How Would I Do This?
Here is a portion of my script:
PHP Code:
} else if (status == 4) { //THIS IS WHERE PLAYER HAS CHOICE BETWEEN COP OR THUG
cm.sendSimple("This is actually where the good guys step in, and do their part! Now, the good guys are generally the police. These police authorities work against the bad guys, always making an attempt to shut down their illegal operations with whatever they can do. Can you understand where I'm going with this? It's time for you to decide your fate, are you willing to be part of the thugs and gang members, or are you willing to be a part of the police force?\r\n\r\n#L0#I want to be a Police Officer#l\r\n#L1#I want to be a Thug#l");
} else if (status == 5) {
if (selection == 0) { //cop
cm.sendAcceptDecline("Do you really want to be a Police Officer?");
cm.sendOk("you are now a cop!");
cm.sendOk("take your time bitch!");
} else if (selection == 1) { //thug
cm.sendAcceptDecline("Do you really want to be a Thug?");
cm.sendOk("you are now a thug!");
cm.sendOk("take your time bitch!");
The cm.sendAcceptDecline is basically a confirmation message, and if the user presses ACCEPT, then it should say "YOU ARE NOW A COP".
If the user presses DECLINE, then it should say "TAKE YOUR TIME BITCH".
How would I work this into statuses being inside of the status that this is already taking place in?
Thanks for the help guys...
-
Re: How Would I Do This?
you don't? you make a new status. and if they click no then make an else statement saying NO etc.
-
Re: How Would I Do This?
@Above, that doesn't help him even the slightest bit.. You don't even know what you're saying.
at the top replace the top bit with this.
PHP Code:
if (status == 6 && mode == 1)
status++;
else if (mode == 1)
status++;
else
status--;
PHP Code:
} else if (status == 4) { //THIS IS WHERE PLAYER HAS CHOICE BETWEEN COP OR THUG
cm.sendSimple("This is actually where the good guys step in, and do their part! Now, the good guys are generally the police. These police authorities work against the bad guys, always making an attempt to shut down their illegal operations with whatever they can do. Can you understand where I'm going with this? It's time for you to decide your fate, are you willing to be part of the thugs and gang members, or are you willing to be a part of the police force?\r\n\r\n#L0#I want to be a Police Officer#l\r\n#L1#I want to be a Thug#l");
} else if (status == 5) {
if (selection == 0) { //cop
cm.sendAcceptDecline("Do you really want to be a Police Officer?");
cm.sendOk("you are now a cop!");
cm.sendOk("take your time bitch!");
} else if (selection == 1) { //thug
cm.sendAcceptDecline("Do you really want to be a Thug?");
cm.sendOk("you are now a thug!");
cm.sendOk("take your time bitch!");
} else if (status == 6) {
if (mode == 1) {
cm.sendOk("YOU ARE NOW A COP");
//do your stuff here.
} else if (mode == 0) {
cm.sendOk("TAKE YOUR TIME BITCH");
}
cm.dispose();
}