(08-06-2019 - 02:27 PM)GucciMang Wrote: if(recivedmessage == "money"){
if(cashdrop){
sendmessage(sender,"Money Drop Stopped");
cashdrop=false;
}
sendmessage(sender,"Money Drop Started");
selectedplayer = reciverplayer;
cashdrop = true;
}
cleaner way to do that would be like this as your way looks horrible
Code:
switch(recivedmessage ){
case "money": cashdrop ? sendmessage(sender,"Money Drop started"), cashdrop = true : sendmessage(sender,"Money Drop stopped"), cashdrop = false; break;
}